Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import get from 'lodash/get';
import {selectedFolderId} from './application';
import {createSelector} from 'reselect/lib/index';
export const explodedItems = state => get(state, 'folders.explodedItems');
export const getSelectedFolder = createSelector(
explodedItems,
selectedFolderId,
(resolvedExplodedItems, resolvedSelectedFolderId) => resolvedExplodedItems[resolvedSelectedFolderId]
);