mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-17 15:03:07 +00:00
19 lines
789 B
TypeScript
19 lines
789 B
TypeScript
import { ActionReducerMap, createFeatureSelector } from '@ngrx/store';
|
|
import { notificationsBrokerSourceReducer, NotificationsBrokerSourceState } from './broker/source/notifications-broker-source.reducer';
|
|
import { notificationsBrokerTopicsReducer, NotificationsBrokerTopicState, } from './broker/topics/notifications-broker-topics.reducer';
|
|
|
|
/**
|
|
* The OpenAIRE State
|
|
*/
|
|
export interface NotificationsState {
|
|
'brokerTopic': NotificationsBrokerTopicState;
|
|
'brokerSource': NotificationsBrokerSourceState;
|
|
}
|
|
|
|
export const notificationsReducers: ActionReducerMap<NotificationsState> = {
|
|
brokerTopic: notificationsBrokerTopicsReducer,
|
|
brokerSource: notificationsBrokerSourceReducer
|
|
};
|
|
|
|
export const notificationsSelector = createFeatureSelector<NotificationsState>('notifications');
|