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

20 lines
467 B
TypeScript
Raw Normal View History

import { SubscriptionDashboardProvider } from '../../context/subscription-dashboard-context'
import useWaitForI18n from '../../../../shared/hooks/use-wait-for-i18n'
import SubscriptionDashboard from './subscription-dashboard'
function Root() {
const { isReady } = useWaitForI18n()
if (!isReady) {
return null
}
return (
<SubscriptionDashboardProvider>
<SubscriptionDashboard />
</SubscriptionDashboardProvider>
)
}
export default Root