summaryrefslogtreecommitdiffstats
path: root/front/odiparpack/internals/generators/container/reducer.js.hbs
blob: 5af9e121a1c910f1bfff1af34e95a5ab422f7ef4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
 *
 * {{ properCase name }} reducer
 *
 */

import { fromJS } from 'immutable';
import { DEFAULT_ACTION } from './constants';

export const initialState = fromJS({});

function {{ camelCase name }}Reducer(state = initialState, action) {
  switch (action.type) {
    case DEFAULT_ACTION:
      return state;
    default:
      return state;
  }
}

export default {{ camelCase name }}Reducer;