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

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

// const useCetakPdfFakturPK = (options?: any) =>
//   useMutation({
//     mutationKey: ['faktur', 'pk', 'cetak-pdf'],
//     mutationFn: async (params: any) => fakturApi.cetakPdfDetail(params),
//     ...options,
//   });

// export default useCetakPdfFakturPK;

import { useMutation } from '@tanstack/react-query';
import fakturApi from '../utils/api';

const useCetakPdfFakturPK = (options?: any) =>
  useMutation({
    mutationFn: async (params: any) => fakturApi.cetakPdfDetail(params),
    ...options,
  });

export default useCetakPdfFakturPK;
