detail invoice

This commit is contained in:
hamid zarghami
2026-02-21 15:39:19 +03:30
parent ad8d7e5f5e
commit 6a3e8fe5e5
4 changed files with 133 additions and 71 deletions
@@ -7,3 +7,11 @@ export const useGetInvoices = () => {
queryFn: api.getInvoices,
});
};
export const useGetInvoiceDetail = (id: string) => {
return useQuery({
queryKey: ["invoice", id],
queryFn: () => api.getInvoiceDetail(id),
enabled: !!id,
});
};