text: import { AXIOS_POST, NEW_POST } from "./actions/types";
  
  const initialState = {
    items: [],
    item: {}
  };
  
  export default function(state = initialState, action) {
    switch (action.type) {
      case AXIOS_POST:
        return {
          ...state,
          items: action.payload
        };
      case NEW_POST:
        return {
          ...state,
          item: action.payload
        };
      default:
        return state;
    }
  }
  