text: import { UPDATE_FILTER } from './actionTypes';
  
  const initialState = {
    items: []
  };
  
  export default function filtersReducer(state = initialState, action) {
    switch (action.type) {
      case UPDATE_FILTER:
        return {
          ...state,
          items: action.payload
        };
      default:
        return state;
    }
  }
  