import { createDraftHook } from '@/hooks/use-draft-save';
import { clearPurchaseDraft, savePurchaseDraft } from '@/lib/purchase-draft';
import type { PurchaseDraftData } from '@/lib/purchase-draft';

export const usePurchaseDraftSave = createDraftHook<PurchaseDraftData>({
    save: savePurchaseDraft,
    clear: clearPurchaseDraft,
});
