2023-01-26 11:48:30 -05:00
|
|
|
import { SubscriptionDashboardProvider } from '../../context/subscription-dashboard-context'
|
2023-01-12 09:53:35 -05:00
|
|
|
import useWaitForI18n from '../../../../shared/hooks/use-wait-for-i18n'
|
2023-01-18 09:38:35 -05:00
|
|
|
import SubscriptionDashboard from './subscription-dashboard'
|
2023-01-12 09:53:35 -05:00
|
|
|
|
|
|
|
function Root() {
|
|
|
|
const { isReady } = useWaitForI18n()
|
|
|
|
|
|
|
|
if (!isReady) {
|
|
|
|
return null
|
|
|
|
}
|
|
|
|
|
2023-01-26 11:48:30 -05:00
|
|
|
return (
|
|
|
|
<SubscriptionDashboardProvider>
|
|
|
|
<SubscriptionDashboard />
|
|
|
|
</SubscriptionDashboardProvider>
|
|
|
|
)
|
2023-01-12 09:53:35 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
export default Root
|