overleaf/services/web/frontend/stories/subscription/new/helpers/context-provider.tsx
ilkin-overleaf c09e29c040 Merge pull request #11751 from overleaf/ii-payment-page-stories
[web] Payment page stories

GitOrigin-RevId: 9f8aff0cf839bc811d8612e97bd627b577860cc8
2023-02-14 09:04:25 +00:00

13 lines
470 B
TypeScript

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>
)
}