import { createDraftHook } from '@/hooks/use-draft-save';
import { clearStokOpnameDraft, loadStokOpnameDraft, saveStokOpnameDraft } from '@/lib/stok-opname-draft';
import type { StokOpnameDraftData } from '@/lib/stok-opname-draft';

export const useStokOpnameDraftSave = createDraftHook<StokOpnameDraftData>({
    save: saveStokOpnameDraft,
    load: loadStokOpnameDraft,
    clear: clearStokOpnameDraft,
});
