You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
import { Avatar , Button , Grid , Stack } from '@mui/material'
import { Container } from '@mui/system'
import { withProtection } from '../hocs'
import { BackButton } from '../components'
export const UserPage = withProtection ( ( ) = > {
const currentUser = {
name : 'Петя' ,
avatarPath : '' ,
about : '' ,
}
return (
< Container maxWidth = "lg" >
< BackButton title = "Профиль" text = "< Главная" path = "/" / >
< Grid container spacing = { 2 } >
< Grid size = { { xs : 12 , md : 4 } } >
< Avatar
alt = { currentUser ? . name }
src = {
currentUser ? . avatarPath
? currentUser . avatarPath
: '/static/images/avatar/1.jpg'
}
sx = { { width : 150 , height : 150 } }
/ >
< p > { currentUser ? . name } < / p >
< p > { currentUser ? . about } < / p >
< Stack >
< Button variant = "outlined" > Р е д а к т и р о в а т ь п р о ф и л ь < / Button >
< Button variant = "outlined" color = "info" >
И з м е н и т ь а в а т а р
< / Button >
< / Stack >
< / Grid >
< / Grid >
< / Container >
)
} )