import _ from 'lodash' ; import { createSelector } from 'reselect' ; import { ApplicationState } from 'store/reducers' ; param state return const getChattersState = ( state ) => state . chatters ; param state param id return const getChatterState = ( state , id ) => state . chatters . byId [ id ] ; param state return export const getChatters = createSelector ( [ getChattersState ] , ( chatters ) => _ . get ( chatters , 'byId' ) ) ; param state return export const getChattersMap = createSelector ( [ getChattersState ] , ( chatters ) => _ . get ( chatters , 'byName' ) ) ; return export const makeGetChatterLogs = ( ) => createSelector ( [ getChatterState ] , ( chatter ) => _ . get ( chatter , 'logs' ) ) ;