mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
18 lines
585 B
TypeScript
18 lines
585 B
TypeScript
import { combineReducers } from "@ngrx/store";
|
|
import { CollectionFindMultipleState, findMultipleReducer } from "./collection-find-multiple.reducer";
|
|
import { CollectionFindSingleState, findSingleReducer } from "./collection-find-single.reducer";
|
|
|
|
export interface CollectionDataState {
|
|
findMultiple: CollectionFindMultipleState,
|
|
findSingle: CollectionFindSingleState
|
|
}
|
|
|
|
const reducers = {
|
|
findMultiple: findMultipleReducer,
|
|
findSingle: findSingleReducer
|
|
};
|
|
|
|
export function collectionDataReducer(state: any, action: any) {
|
|
return combineReducers(reducers)(state, action);
|
|
}
|