import { createDraftHook } from '@/hooks/use-draft-save';
import {
    clearTransactionDraft,
    saveTransactionDraft,
} from '@/lib/transaction-draft';
import type { TransactionDraftData } from '@/lib/transaction-draft';

export const useTransactionDraftSave = createDraftHook<TransactionDraftData>({
    save: saveTransactionDraft,
    clear: clearTransactionDraft,
});
