// ** React Imports import { ChangeEvent, 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 Radio from '@mui/material/Radio' import Avatar from '@mui/material/Avatar' import Button from '@mui/material/Button' import Switch from '@mui/material/Switch' import ListItem from '@mui/material/ListItem' import TextField from '@mui/material/TextField' import IconButton from '@mui/material/IconButton' import Typography from '@mui/material/Typography' import RadioGroup from '@mui/material/RadioGroup' import ListItemIcon from '@mui/material/ListItemIcon' import ListItemText from '@mui/material/ListItemText' import ListItemButton from '@mui/material/ListItemButton' import FormControlLabel from '@mui/material/FormControlLabel' // ** Icon Imports import Icon from 'src/@core/components/icon' // ** Third Party Components import PerfectScrollbar from 'react-perfect-scrollbar' // ** Types import { StatusType, UserProfileLeftType } from 'src/types/apps/chatTypes' // ** Custom Component Imports import Sidebar from 'src/@core/components/sidebar' const UserProfileLeft = (props: UserProfileLeftType) => { const { store, hidden, statusObj, userStatus, sidebarWidth, setUserStatus, userProfileLeftOpen, handleUserProfileLeftSidebarToggle } = props const handleUserStatus = (e: ChangeEvent) => { setUserStatus(e.target.value as StatusType) } const ScrollWrapper = ({ children }: { children: ReactNode }) => { if (hidden) { return {children} } else { return {children} } } return ( theme.shape.borderRadius, borderBottomLeftRadius: theme => theme.shape.borderRadius, '& + .MuiBackdrop-root': { zIndex: 8, borderRadius: 1 } }} > {store && store.userProfile ? ( `0 0 0 2px ${theme.palette.background.paper}` }} /> } > {store.userProfile.fullName} {store.userProfile.role} About Status
} sx={{ '& .MuiFormControlLabel-label': { ml: 1, color: 'text.secondary' } }} />
} sx={{ '& .MuiFormControlLabel-label': { ml: 1, color: 'text.secondary' } }} />
} sx={{ '& .MuiFormControlLabel-label': { ml: 1, color: 'text.secondary' } }} />
} sx={{ '& .MuiFormControlLabel-label': { ml: 1, color: 'text.secondary' } }} />
Settings }> }>
) : null}
) } export default UserProfileLeft