import { createSelector } from 'reselect';

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

/**
 * Other specific selectors
 */


/**
 * Default selector used by Ebill
 */

const makeSelectEbill = () => createSelector(
  selectEbillDomain(),
  (substate) => substate && substate.toJS()
);

export default makeSelectEbill;
export {
  makeSelectEbill,
};
