text: import { CATEGORY_CALL_ALL_DATA_API } from "src/sagaType/category";
  
  const initialState = {
    data: null,
  };
  
  export default (state = initialState, { type, payload }) => {
    switch (type) {
      case CATEGORY_CALL_ALL_DATA_API:
        return { ...state, data: payload };
      default:
        return state;
    }
  };
  