const searchResults = (state = {}, action) => { switch (action.type) { case "SEARCH_RESULTS": return action.payload; case "SEARCH_CLEAR": return (state = {}); default: return state; } }; export default searchResults;