import { createSelector } from 'reselect';

/**
 * Direct selector to the weChat state domain
 */
const selectWeChatDomain = () => (state) => state.get('weChatMapTemplate');

/**
 * Other specific selectors
 */


/**
 * Default selector used by WeChat
 */

const makeSelectWeChat = () => createSelector(
  selectWeChatDomain(),
  (substate) => substate.toJS()
);

export default makeSelectWeChat;
export {
  selectWeChatDomain,
};
