import createSelector from 'Utils/Function/createSelector';

export const createBackgroundWorkStateSelector = (...names) =>
    createSelector(
        uiState => uiState.backgroundWorkMap,
        backgroundWorkMap => names.reduce((result, name) => backgroundWorkMap[name] || result, false)
    );

export const getVisibilityMapProperty = (state, name) => state.visibilityMap[name];
