import { createSelector } from 'reselect';
const selectRcsDomain = () => (state) => state.get('rcs');
const selectAccountDomain = () => (state) => state.get('templates');

const makeSelectRcs = () => createSelector(
  selectRcsDomain(),
  (substate) => substate && substate.toJS()
);

const makeSelectAccount = () =>
  createSelector(selectAccountDomain(), (substate) => substate.toJS());

export {
  makeSelectRcs,
  makeSelectAccount,
};
