import { createSelector } from 'reselect';

const selectWhatsappDomain = () => (state) => state.get('whatsapp');
const selectAccountDomain = () => (state) => state.get('templates');

const makeSelectWhatsapp = () =>
  createSelector(selectWhatsappDomain(), (substate) => substate.toJS());

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

export { makeSelectWhatsapp, makeSelectAccount };
