Files
simrsx-fe/app/handlers/unit.handler.ts

22 lines
447 B
TypeScript

import { createCrudHandler } from '~/handlers/_handler'
import { postUnit, patchUnit, removeUnit } from '~/services/unit.service'
export const {
recId,
recAction,
recItem,
isReadonly,
isProcessing,
isFormEntryDialogOpen,
isRecordConfirmationOpen,
onResetState,
handleActionSave,
handleActionEdit,
handleActionRemove,
handleCancelForm,
} = createCrudHandler({
post: postUnit,
patch: patchUnit,
remove: removeUnit,
})