import { isEmpty } from 'ramda' ; import { createSelector } from 'reselect' ; import { IRootState } from 'modules' ; import { IAccount , IState as AccountReduceState } from './reducer' ; export const getAccounts = createSelector ( ( state ) => state . accounts , ( accounts ) => accounts ) ; export const getAccount = ( uniqKey ) => createSelector ( ( state ) => state . accounts , ( accounts ) => accounts [ uniqKey ] ) ; export const getAccountEncKey = ( uniqKey ) => createSelector ( ( state ) => state . accounts , ( accounts ) => accounts [ uniqKey ] . encKey ) ;