src/hooks/insuranceClaim.ts
@@ -50,3 +50,34 @@ isLoading, }; } export function useInsureActions() { const router = useRouter(); async function handleGoDownloadInvoice(id: string) { try { await insuranceOrderServices.getInvoiceId({ id: id }); router.push({ name: 'InsureDownloadInvoice', params: { id: id, }, }); } catch (error) {} } async function handleGoStampFiles(id: string) { try { router.push({ name: 'InsurancePolicyStampFiles', params: { id: id, }, }); } catch (error) {} } return { handleGoDownloadInvoice, handleGoStampFiles, }; }