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