import { createSelector } from 'reselect';

/**
 * Direct selector to the create state domain
 */
const selectSmsEditDomain = () => (state) => state.get('edit');

/**
 * Other specific selectors
 */


/**
 * Default selector used by Create
 */

const makeSelectEdit = () => createSelector(
  selectSmsEditDomain(),
  (substate) => substate.toJS()
);

const makeSelectEditResponse = () => createSelector(
  selectSmsEditDomain(), (dimensionState) => dimensionState.get('editResponse')
);

const makeSelectTemplateDetailsResponse = () => createSelector(
  selectSmsEditDomain(), (dimensionState) => dimensionState.get('templateDetails')
);

export {
  makeSelectEdit, makeSelectEditResponse, makeSelectTemplateDetailsResponse,
};
