// material-ui import { styled, useTheme } from '@mui/material/styles'; import { Button, Grid, Tooltip, Typography } from '@mui/material'; // project imports import Avatar from '../extended/Avatar'; import { gridSpacing } from 'store/constant'; import { UserProfile } from '_mockApis/user-profile/types'; // assets import ChatBubbleTwoToneIcon from '@mui/icons-material/ChatBubbleTwoTone'; import PhoneTwoToneIcon from '@mui/icons-material/PhoneTwoTone'; const avatarImage = require.context('assets/images/users', true); // styles const ListWrapper = styled('div')(({ theme }) => ({ padding: '15px 0', borderBottom: theme.palette.mode === 'dark' ? 'none' : '1px solid', borderTop: theme.palette.mode === 'dark' ? 'none' : '1px solid', borderColor: `${theme.palette.grey[100]}!important` })); // ==============================|| USER CONTACT LIST ||============================== // export interface ContactListProps extends UserProfile { onActive: () => void; } const ContactList = ({ avatar, name, role, onActive }: ContactListProps) => { const theme = useTheme(); const avatarProfile = avatar && avatarImage(`./${avatar}`).default; return ( { onActive && onActive(); }} style={{ cursor: 'pointer' }} > {name} {role} ); }; export default ContactList;