overleaf/services/web/frontend/js/features/subscription/components/successful-subscription/root.tsx

23 lines
597 B
TypeScript
Raw Normal View History

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>
<SuccessfulSubscription />
</SubscriptionDashboardProvider>
</SplitTestProvider>
)
}
export default Root