
const initialState = {
    attendenceAnomolyData : [],
    partABatchAnomolyData : [],
    systemNumber : null
  };
  
  const reducer = (state = initialState, action) => {
    switch (action.type) {
      case 'UPDATE_ATTENDENCE_ANOMOLY_DATA':
        return { ...state, attendenceAnomolyData:action?.payload};
      case 'UPDATE_PART-A_ANOMOLY_DATA':
        return { ...state, partABatchAnomolyData:action?.payload};
      case 'UPDATE_SYSTEM_NO':
        return { ...state,systemNumber:action?.payload}
      default:
        return state;
    }
  };
  
  export default reducer;
  