import Avatar from '@material-ui/core/Avatar';
import Icon from '@material-ui/core/Icon';
import {makeStyles} from '@material-ui/core/styles';
import useProfile from '../../hooks/useProfile';
const UserIcon = () => {
const {profile} = useProfile();
const classes = useStyles();
if (profile)
return (
{`${profile.username[0]}`.toUpperCase()}
);
else return more_vert;
};
const useStyles = makeStyles(theme => ({
avatar: {
width: theme.spacing(3),
height: theme.spacing(3),
fontSize: 16,
},
}));
export default UserIcon;