mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-02 11:31:56 -05: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>
|
||
|
)
|
||
|
}
|