import { Typography } from '@mui/material' import { useAppSelector } from '../hooks/store' import styles from './username.module.scss' import { AvatarIconButton } from './UserAvatarIconButton' type Props = { username: string avatarContent: string handleClick: (event: React.MouseEvent) => void } /** * This component will be used for the displaying logged in user in AppBar. * Clicking will open the menu. */ const Username = ({ username, avatarContent, handleClick }: Props) => { const hexKey = useAppSelector((state) => state.auth.usersPubkey) return (
{username}
) } export default Username