import { createSelector } from 'reselect' ; import { path } from 'ramda' ; import { IRootState } from 'modules' ; import { IState as AccountReduceState } from './reducer' ; export const getNotifications = createSelector ( ( state ) => state . notifications , ( notifications ) => notifications ) ; export const getNotificationsCount = ( state ) => path ( [ 'notifications' , `${ state . auth . currentAccount }` , 'count' ] , state ) ; export const getNotification = ( state , uniqKey ) => state . notifications [ uniqKey ] ;