import { createSelector } from 'reselect';

/**
 * Direct selector to the cap state domain
 */
const selectAppDomain = () => (state) => state.get('app');

/**
 * Other specific selectors
 */


/**
 * Default selector used by Cap
 */

const makeSelectApp = () => createSelector(
  selectAppDomain(),
  (substate) => substate.toJS()
);

export default makeSelectApp;
export {
  selectAppDomain,
};
