import { Typography } from '@mui/material' import { useSelector } from 'react-redux' import { State } from '../store/rootReducer' 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 = useSelector((state: State) => state.auth.usersPubkey) return (
{username}
) } export default Username