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