import { createSelector, createFeatureSelector, } from '@ngrx/store'; import { StateSelector } from '@overflow/core/ngrx/store'; import { MODULE } from '../notification.constant'; import * as NotificationEntityStore from './entity/notification'; export interface State { notification: NotificationEntityStore.State; } export const REDUCERS = { notification: NotificationEntityStore.reducer, }; export const EFFECTS = [ NotificationEntityStore.Effects, ]; export const selectState = createFeatureSelector(MODULE.name); export const NotificationEntitySelector = NotificationEntityStore.getSelectors(createSelector( selectState, (state: State) => state.notification ));