import { createSelector } from 'reselect';

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

/**
 * Other specific selectors
 */


/**
 * Default selector used by SmsTrai
 */

const makeSelectSmsTrai = () => createSelector(
  selectSmsTraiDomain(),
  (substate) => substate?.toJS()
);

export default makeSelectSmsTrai;

export {
  selectSmsTraiDomain,
};
