import { createSelector } from 'reselect';

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

/**
 * Other specific selectors
 */


/**
 * Default selector used by Create
 */

const makeSelectCreate = () => createSelector(
  selectSmsCreateDomain(),
  (substate) => substate.toJS()
);

const makeSelectCreateResponse = () => createSelector(
  selectSmsCreateDomain(), (dimensionState) => dimensionState.get('response')
);

export {
  makeSelectCreate, makeSelectCreateResponse,
};
