mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2025-07-31 11:00:06 +02:00

UserFeaturesContext with cross-tab syncing via BroadcastChannel GitOrigin-RevId: 4262719f5018f5717211851ce28b3255af65461a
25 lines
707 B
TypeScript
25 lines
707 B
TypeScript
import { UserProvider } from '@/shared/context/user-context'
|
|
import useWaitForI18n from '../../../../shared/hooks/use-wait-for-i18n'
|
|
import { SubscriptionDashboardProvider } from '../../context/subscription-dashboard-context'
|
|
import SuccessfulSubscription from './successful-subscription'
|
|
import { SplitTestProvider } from '@/shared/context/split-test-context'
|
|
|
|
function Root() {
|
|
const { isReady } = useWaitForI18n()
|
|
|
|
if (!isReady) {
|
|
return null
|
|
}
|
|
|
|
return (
|
|
<SplitTestProvider>
|
|
<SubscriptionDashboardProvider>
|
|
<UserProvider>
|
|
<SuccessfulSubscription />
|
|
</UserProvider>
|
|
</SubscriptionDashboardProvider>
|
|
</SplitTestProvider>
|
|
)
|
|
}
|
|
|
|
export default Root
|