overleaf/services/web/frontend/stories/subscription/new/helpers/context-provider.tsx

14 lines
470 B
TypeScript
Raw Normal View History

import { PaymentContext } from '../../../../js/features/subscription/context/payment-context'
import { PaymentContextValue } from '../../../../js/features/subscription/context/types/payment-context-value'
type PaymentProviderProps = {
children: React.ReactNode
value: PaymentContextValue
}
export function PaymentProvider({ value, children }: PaymentProviderProps) {
return (
<PaymentContext.Provider value={value}>{children}</PaymentContext.Provider>
)
}