import ListItemButton from '@mui/material/ListItemButton'; import Avatar from '@mui/material/Avatar'; import ListItemText from '@mui/material/ListItemText'; import ListItemIcon from '@mui/material/ListItemIcon'; import { useDispatch, useSelector } from 'react-redux'; import { actionRightIsOpen } from '../../../../../redux/control/action' import { getChat } from '../../../../../redux/chat/selector' import { firstLetter,slicedWord,timeStampEU,prodAwsS3 } from '../../../../../helpers' const Credentials = () => { const dispatch = useDispatch() const { name, lastName, avatarUrl, color, online } = useSelector(getChat) return ( dispatch(actionRightIsOpen('credentials'))}> {!avatarUrl&&`${firstLetter(name)}${firstLetter(lastName)}`} ) } export default Credentials