importActionTypefrom'../../actions/types'// khởi tạo một init stateconstinitialState={isLoading:false,}// bắt từng action typefunctionGetTimeKeepingReducer(state=initialState,action){switch(action.type){caseActionType.START_GET_TIME_KEEPING:return{...state,isLoading:true,}caseActionType.GET_TIME_KEEPING_SUCCESS:return{isLoading:false,}caseActionType.GET_TIME_KEEPING_FAILED:return{...state,isLoading:false,}default:returnstate}}exportdefaultGetTimeKeepingReducer