import actions from 'content/actions'; const defaultState = { keyword: null, }; export default function reducer(state = defaultState, action = {}) { switch (action.type) { case actions.FIND_SET_KEYWORD: return { ...state, keyword: action.keyword, }; default: return state; } }