import { createSelector } from 'reselect';
import { fromJS } from 'immutable';
/**
 * Direct selector to the email state domain
 */
const selectBEEDomain = () => (state) => state.get('beeEditor');

/**
 * Default selector used by beeEditor
 */

const makeSelectBEE = () => createSelector(
    selectBEEDomain(),
  (substate = fromJS({})) => substate.toJS()
);

export default makeSelectBEE;
