aboutsummaryrefslogtreecommitdiff
path: root/src/content/reducers/setting.js
blob: a54f5a382989610707e008e9469d57251bfd6768 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import actions from 'content/actions';

const defaultState = {
  keymaps: new Map(),
};

export default function reducer(state = defaultState, action = {}) {
  switch (action.type) {
  case actions.SETTING_SET:
    return Object.assign({}, action.value);
  default:
    return state;
  }
}