Files
simrsx-fe/app/handlers/device.handler.ts
2025-09-29 10:17:33 +07:00

22 lines
461 B
TypeScript

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