12345678910111213141516 |
- import { Action } from 'redux/interfaces';
- import { Cluster } from 'generated-sources';
- import ActionType from 'redux/actionType';
- export const initialState: Cluster[] = [];
- const reducer = (state = initialState, action: Action): Cluster[] => {
- switch (action.type) {
- case ActionType.GET_CLUSTERS__SUCCESS:
- return action.payload;
- default:
- return state;
- }
- };
- export default reducer;
|