import { useMutation } from '@tanstack/react-query';

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

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

export default useUploadDokumenLainMasukan;
