import React from 'react'; // material-ui import { useTheme } from '@mui/material/styles'; import { Avatar, Button, Card, Grid, IconButton, ListItemIcon, Menu, MenuItem, Typography, Tooltip } from '@mui/material'; // project imports import { gridSpacing } from 'store/constant'; // assets import MoreHorizOutlinedIcon from '@mui/icons-material/MoreHorizOutlined'; import PinDropTwoToneIcon from '@mui/icons-material/PinDropTwoTone'; import VideoCallTwoToneIcon from '@mui/icons-material/VideoCallTwoTone'; import ChatBubbleTwoToneIcon from '@mui/icons-material/ChatBubbleTwoTone'; import FavoriteTwoToneIcon from '@mui/icons-material/FavoriteTwoTone'; import DeleteTwoToneIcon from '@mui/icons-material/DeleteTwoTone'; import GroupTwoToneIcon from '@mui/icons-material/GroupTwoTone'; const avatarImage = require.context('assets/images/profile', true); // ==============================|| SOCIAL PROFILE - FRIENDS CARD ||============================== // export interface FriendsCardProps { avatar: string; location: string; name: string; } const FriendsCard = ({ avatar, location, name }: FriendsCardProps) => { const theme = useTheme(); const avatarProfile = avatar && avatarImage(`./${avatar}`).default; const btnSX = { borderColor: theme.palette.mode === 'dark' ? theme.palette.dark.main : theme.palette.grey[200], background: theme.palette.mode === 'dark' ? theme.palette.dark.dark : theme.palette.background.paper }; const [anchorEl, setAnchorEl] = React.useState Element) | null | undefined>(null); const handleClick = (event: React.MouseEvent | undefined) => { setAnchorEl(event?.currentTarget); }; const handleClose = () => { setAnchorEl(null); }; return ( {name} {location} Favorites Edit Friend List Unfriend ); }; export default FriendsCard;