import { createSelector } from 'reselect';

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

/**
 * Other specific selectors
 */


/**
 * Default selector used by TemplatesV2
 */

const makeSelectTemplatesV2 = () => createSelector(
  selectTemplatesV2Domain(),
  (substate) => substate.toJS()
);

export default makeSelectTemplatesV2;
export {
  selectTemplatesV2Domain,
};
