import { createSelector } from 'reselect';

/**
 * Direct selector to the view state domain
 */
const selectViewDomain = () => (state) => state.get('view');

/**
 * Other specific selectors
 */


/**
 * Default selector used by View
 */

const makeSelectView = () => createSelector(
  selectViewDomain(),
  (substate) => substate.toJS()
);

export default makeSelectView;
export {
  selectViewDomain,
};
