import { Popover, Space } from 'antd'; import React from 'react'; import { getInitials } from 'App/utils'; import Notifications from 'Components/Alerts/Notifications/Notifications'; import HealthStatus from 'Components/Header/HealthStatus'; import UserMenu from 'Components/Header/UserMenu/UserMenu'; import GettingStartedProgress from 'Shared/GettingStarted/GettingStartedProgress'; import ProjectDropdown from 'Shared/ProjectDropdown'; import { useStore } from 'App/mstore'; import { observer } from 'mobx-react-lite'; interface Props { account: any; spotOnly?: boolean; } function TopRight(props: Props) { const { userStore } = useStore(); const spotOnly = userStore.scopeState === 1; const account = userStore.account; return ( {props.spotOnly ? null : ( <> {account.name ? : null} )} } placement={'topRight'}>
{getInitials(account.name)}
); } export default observer(TopRight);