MCPcopy Create free account
hub / github.com/OpenPipe/OpenPipe / useInvoice

Function useInvoice

app/src/utils/hooks.ts:448–455  ·  view source on GitHub ↗
(id: string, refetchInterval?: number)

Source from the content-addressed store, hash-verified

446};
447
448export const useInvoice = (id: string, refetchInterval?: number) => {
449 const selectedProjectId = useSelectedProject().data?.id;
450
451 return api.invoices.get.useQuery(
452 { invoiceId: id },
453 { enabled: !!selectedProjectId, refetchInterval, retry: false },
454 );
455};
456
457export const usePaymentMethods = (refetchInterval?: number) => {
458 const selectedProjectId = useSelectedProject().data?.id;

Callers 1

InvoiceFunction · 0.90

Calls 1

useSelectedProjectFunction · 0.85

Tested by

no test coverage detected