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 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('Profile')}
{t(
'Your email address is your identity on OpenReplay and is used to login.',
)}
{account.hasPassword && (
<>
{t('Change Password')}
{t('Updating your password from time to time enhances your account’s security.')}
>
)}
{t('Organization API Key')}
{t('Your API key gives you access to an extra set of services.')}
{isEnterprise && (account.admin || account.superAdmin) && (
<>
{t('Tenant Key')}
{t('For SSO (SAML) authentication.')}
>
)}
{!isEnterprise && (
<>
{t('Data Collection')}
{t('Enables you to control how OpenReplay captures data on your organization’s usage to improve our product.')}
>
)}
{account.license && (
<>
{t('License')}
{t('License key and expiration date.')}
>
)}
);
}
export default withPageTitle('Account - OpenReplay Preferences')(
observer(ProfileSettings),
);