MCPcopy Create free account
hub / github.com/dailydotdev/apps / usePaymentContext

Function usePaymentContext

packages/shared/src/contexts/payment/context.ts:36–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34);
35
36export const usePaymentContext = (): PaymentContextData => {
37 const context = useContext(PaymentContext);
38 if (context === undefined) {
39 throw new Error(
40 'usePaymentContext must be used within a PaymentContextProvider',
41 );
42 }
43 return context;
44};
45
46export interface PaymentContextProviderProps<T = unknown, E = unknown> {
47 children?: ReactNode;

Callers 14

GiftPlusModalComponentFunction · 0.90
PlusDesktopFunction · 0.90
PlusProductToggleFunction · 0.90
PlusInfoFunction · 0.90
PlusMobileFunction · 0.90
PlusIOSFunction · 0.90
PlusExtensionFunction · 0.90
PlusCheckoutContainerFunction · 0.90
PlusWebappFunction · 0.90
FunnelCheckoutFunction · 0.90
FunnelPricingV1Function · 0.90
PricingPlansV2Function · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected