import { createSelector } from "reselect";

const selectZaloDomain = () => (state) => state.get('zalo');
const selectAccountDomain = () => (state) => state.get('templates');

const makeSelectZalo = () =>
  createSelector(selectZaloDomain(), (substate) => substate && substate.toJS());

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

export { makeSelectZalo, makeSelectAccount};
