aboutsummaryrefslogtreecommitdiff
path: root/src/reducers/index.js
blob: 83a9a567040a463e3fe9138e2da8b8e19ed92591 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import inputReducer from '../reducers/input';
import consoleReducer from '../reducers/console';

const defaultState = {
  input: inputReducer(undefined, {}),
  console: consoleReducer(undefined, {})
};

export default function reducer(state = defaultState, action = {}) {
  return Object.assign({}, state, {
    input: inputReducer(state.input, action),
    console: consoleReducer(state.console, action)
  });
}