selectors.ts
420 Bytes
import { createSelector } from 'reselect';
import { get } from 'lodash/fp';
import { PortalState } from '../../definitions/portal-interfaces';
const threadContents = ({threadContents}: PortalState) => threadContents;
export const getThreadContentsCollection = createSelector(
threadContents,
get('collection')
);
export const getIsFetchingThreadContents = createSelector(
threadContents,
get('isFetching')
);