import actions from '../actions'; const defaultState = { settings: {} }; export default function reducer(state = defaultState, action = {}) { switch (action.type) { case actions.SETTING_SET_SETTINGS: return Object.assign({}, state, { settings: action.settings, }); default: return state; } }