import React from 'react'; import withPageTitle from 'HOCs/withPageTitle'; import { PageTitle } from 'UI'; import { observer } from 'mobx-react-lite'; import { useStore } from 'App/mstore'; import LanguageSwitcher from "App/components/LanguageSwitcher"; import Settings from './Settings'; import ChangePassword from './ChangePassword'; import styles from './profileSettings.module.css'; import Api from './Api'; import TenantKey from './TenantKey'; import OptOut from './OptOut'; import Licenses from './Licenses'; import { useTranslation } from 'react-i18next'; function ProfileSettings() { const { t } = useTranslation(); const { userStore } = useStore(); const { account } = userStore; const { isEnterprise } = userStore; return (
{t('Account')}
} />
} />
{account.hasPassword && ( <>
} />
)}
} />
} /> {isEnterprise && (account.admin || account.superAdmin) && ( <>
} /> )} {!isEnterprise && ( <>
} /> )} {account.license && ( <>
} /> )}
); } function Section({ title, description, children }: { title: string; description: string; children: React.ReactNode; }) { return (

{title}

{description}
{children}
) } export default withPageTitle('Account - OpenReplay Preferences')( observer(ProfileSettings), );