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 { connect } from 'react-redux'; @withPageTitle('Account - OpenReplay Preferences') @connect(state => ({ account: state.getIn([ 'user', 'account' ]), isEnterprise: state.getIn([ 'user', 'account', 'edition' ]) === 'ee', })) export default class ProfileSettings extends React.PureComponent { render() { const { account, isEnterprise } = this.props; 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 && ( <>

{ '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.' }
)} ); } }