import { createDraftHook } from '@/hooks/use-draft-save';
import {
    clearRawMaterialDraft,
    saveRawMaterialDraft,
} from '@/lib/raw-material-draft';
import type { RawMaterialDraftData } from '@/lib/raw-material-draft';

export const useRawMaterialDraftSave = createDraftHook<RawMaterialDraftData>({
    save: saveRawMaterialDraft,
    clear: clearRawMaterialDraft,
});
