blob: 4560e2c7d2dee18db6a7f0272f395c42f44397e2 (
plain) (
tree)
|
|
import actions from 'content/actions';
const defaultState = {
keyword: null,
found: false,
};
export default function reducer(state = defaultState, action = {}) {
switch (action.type) {
case actions.FIND_SET_KEYWORD:
return { ...state,
keyword: action.keyword,
found: action.found, };
default:
return state;
}
}
|