39 lines
783 B
JavaScript
Raw Normal View History

import { createSelector } from 'reselect';
/**
* Direct selector to the languageToggle state domain
*/
2017-08-18 17:02:33 +02:00
const selectApp = () => (state) => state.get('app');
/**
* Select the language locale
*/
const selectPlugins = () => createSelector(
selectApp(),
2017-08-21 15:12:53 +02:00
(appState) => appState.get('plugins')
);
const selectHasUserPlugin = () => createSelector(
selectApp(),
(appState) => appState.get('hasUserPlugin'),
);
const makeSelectShowGlobalAppBlocker = () => createSelector(
selectApp(),
(appState) => appState.get('showGlobalAppBlocker'),
);
const makeSelectBlockApp = () => createSelector(
selectApp(),
(appState) => appState.get('blockApp'),
);
2016-08-18 11:41:13 +02:00
export {
selectApp,
selectHasUserPlugin,
selectPlugins,
makeSelectBlockApp,
makeSelectShowGlobalAppBlocker,
2016-08-18 11:41:13 +02:00
};