// ** React Imports
import { Fragment, ReactNode } from 'react'
// ** MUI Imports
import Box from '@mui/material/Box'
import List from '@mui/material/List'
import Badge from '@mui/material/Badge'
import MuiAvatar from '@mui/material/Avatar'
import ListItem from '@mui/material/ListItem'
import FormGroup from '@mui/material/FormGroup'
import IconButton from '@mui/material/IconButton'
import Typography from '@mui/material/Typography'
import ListItemIcon from '@mui/material/ListItemIcon'
import ListItemText from '@mui/material/ListItemText'
import ListItemButton from '@mui/material/ListItemButton'
// ** Icon Imports
import Icon from 'src/@core/components/icon'
// ** Third Party Components
import PerfectScrollbar from 'react-perfect-scrollbar'
// ** Type
import { UserProfileRightType } from 'src/types/apps/chatTypes'
// ** Custom Component Imports
import Sidebar from 'src/@core/components/sidebar'
import CustomAvatar from 'src/@core/components/mui/avatar'
const UserProfileRight = (props: UserProfileRightType) => {
const {
store,
hidden,
statusObj,
getInitials,
sidebarWidth,
userProfileRightOpen,
handleUserProfileRightSidebarToggle
} = props
const ScrollWrapper = ({ children }: { children: ReactNode }) => {
if (hidden) {
return {children}
} else {
return {children}
}
}
return (
theme.shape.borderRadius,
borderBottomRightRadius: theme => theme.shape.borderRadius,
'& + .MuiBackdrop-root': {
zIndex: 8,
borderRadius: 1
}
}}
>
{store && store.selectedChat ? (
`0 0 0 2px ${theme.palette.background.paper}`,
backgroundColor: `${statusObj[store.selectedChat.contact.status]}.main`
}}
/>
}
>
{store.selectedChat.contact.avatar ? (
) : (
{getInitials(store.selectedChat.contact.fullName)}
)}
{store.selectedChat.contact.fullName}
{store.selectedChat.contact.role}
About
{store.selectedChat.contact.about}
Personal Information
Settings
) : null}
)
}
export default UserProfileRight