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

const defaultState = {
  enabled: true,
};

export default function reducer(state = defaultState, action = {}) {
  switch (action.type) {
  case actions.ADDON_SET_ENABLED:
    return { ...state,
      enabled: action.enabled, };
  default:
    return state;
  }
}