import { createSelector } from 'reselect';

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

/**
 * Other specific selectors
 */


/**
 * Default selector used by EmailWrapper
 */

const makeSelectEmailWrapper = () => createSelector(
  selectEmailWrapperDomain(),
  (substate) => substate.toJS()
);

export default makeSelectEmailWrapper;
export {
  selectEmailWrapperDomain,
};
