// hooks/useUpload.ts
import { useMutation } from '@tanstack/react-query';

import fakturApi from '../utils/api';

const useUploadDokumenLainKeluaran = (props?: any) =>
  useMutation({
    mutationKey: ['upload-dokumen-lain-keluaran'],
    mutationFn: (payload: { id: string | number }) => fakturApi.uploadDokumenLainKeluaran(payload),
    ...props,
  });

export default useUploadDokumenLainKeluaran;
