importActionTypefrom'../../actions/types'// khởi tạo một init stateconstinitialState={sheetInfo:[],isLoading:false,}// bắt từng action typefunctionGetSheetUser(state=initialState,action){switch(action.type){caseActionType.START_GET_USER_SHEET:return{...state,isLoading:true,}caseActionType.GET_USER_SHEET_SUCCESS:return{sheetInfo:action.data,isLoading:false,}caseActionType.GET_USER_SHEET_FAILED:return{...state,isLoading:false,}default:returnstate}}exportdefaultGetSheetUser