mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
c09e29c040
[web] Payment page stories GitOrigin-RevId: 9f8aff0cf839bc811d8612e97bd627b577860cc8
13 lines
470 B
TypeScript
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>
|
|
)
|
|
}
|