mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-28 01:42:36 +00:00
14 lines
470 B
TypeScript
14 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>
|
||
|
)
|
||
|
}
|