Files
Ferme/frontend/stores/reception.ts
tristan a905c6a1de
Some checks failed
Auto Tag Develop / tag (push) Has been cancelled
fix : correction des retours de la V0
2026-03-18 14:47:03 +01:00

20 lines
667 B
TypeScript

import { defineStore } from 'pinia'
import { useWorkflowStoreLogic } from '~/stores/workflow-store'
import { receptionService } from '~/services/reception'
import type { ReceptionData, ReceptionPayload } from '~/services/dto/reception-data'
export const useReceptionStore = defineStore('reception', () => {
const { current, isLoading, setCurrent, clearCurrent, load, create, update } =
useWorkflowStoreLogic<ReceptionData, ReceptionPayload>(receptionService)
return {
current,
isLoading,
setCurrent,
clearCurrent,
loadReception: load,
createReception: create,
updateReception: update
}
})