import { memo, useCallback, useContext } from 'react'; import PersonIcon from '@mui/icons-material/Person'; import { Avatar, Box, Button, Divider, List, ListItem, ListItemText, Typography } from '@mui/material'; import { AuthenticatedContext } from '@/contexts/authentication'; import { SectionContent, useLayoutTitle } from 'components'; import { LanguageSelector } from 'components/inputs'; import { useI18nContext } from 'i18n/i18n-react'; const UserProfileComponent = () => { const { LL } = useI18nContext(); const { me, signOut } = useContext(AuthenticatedContext); useLayoutTitle(LL.USER_PROFILE()); const handleSignOut = useCallback(() => { signOut(true); }, [signOut]); return ( {LL.LANGUAGE()}: ); }; const UserProfile = memo(UserProfileComponent); export default UserProfile;