import { useEffect } from 'react' import { useTranslation } from 'react-i18next' import getMeta from '../../../utils/meta' import EmailsSection from './emails-section' import AccountInfoSection from './account-info-section' import ManagedAccountAlert from './managed-account-alert' import PasswordSection from './password-section' import LinkingSection from './linking-section' import BetaProgramSection from './beta-program-section' import LabsProgramSection from './labs-program-section' import SessionsSection from './sessions-section' import NewsletterSection from './newsletter-section' import LeaveSection from './leave-section' import * as eventTracking from '../../../infrastructure/event-tracking' import { UserProvider } from '../../../shared/context/user-context' import { SSOProvider } from '../context/sso-context' import { SplitTestProvider } from '@/shared/context/split-test-context' import useWaitForI18n from '../../../shared/hooks/use-wait-for-i18n' import useScrollToIdOnLoad from '../../../shared/hooks/use-scroll-to-id-on-load' import { ExposedSettings } from '../../../../../types/exposed-settings' import { SSOAlert } from './emails/sso-alert' function SettingsPageRoot() { const { isReady } = useWaitForI18n() useScrollToIdOnLoad() useEffect(() => { eventTracking.sendMB('settings-view') }, []) return (
{isReady ? : null}
) } function SettingsPageContent() { const { t } = useTranslation() const { isOverleaf, labsEnabled } = getMeta( 'ol-ExposedSettings' ) as ExposedSettings return (

{t('account_settings')}


{isOverleaf ? ( <>
) : null} {labsEnabled ? ( <>
) : null} {isOverleaf ? ( <>

) : null}
) } export default SettingsPageRoot