// material-ui import { useTheme, styled } from '@mui/material/styles'; import { Button, Card, CardContent, CardMedia, Chip, Grid, 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 FacebookIcon from '@mui/icons-material/Facebook'; import TwitterIcon from '@mui/icons-material/Twitter'; import LinkedInIcon from '@mui/icons-material/LinkedIn'; import ChatBubbleTwoToneIcon from '@mui/icons-material/ChatBubbleTwoTone'; const avatarImage = require.context('assets/images/profile', true); // styles const FacebookWrapper = styled(Button)({ padding: 8, background: 'rgba(66, 103, 178, 0.2)', '& svg': { color: '#4267B2' }, '&:hover': { background: '#4267B2', '& svg': { color: '#fff' } } }); const TwitterWrapper = styled(Button)({ padding: 8, background: 'rgba(29, 161, 242, 0.2)', '& svg': { color: '#1DA1F2' }, '&:hover': { background: '#1DA1F2', '& svg': { color: '#fff' } } }); const LinkedInWrapper = styled(Button)({ padding: 8, background: 'rgba(14, 118, 168, 0.12)', '& svg': { color: '#0E76A8' }, '&:hover': { background: '#0E76A8', '& svg': { color: '#fff' } } }); export interface UserProfileCardProps extends UserProfile { profile: string; } // ==============================|| USER PROFILE CARD ||============================== // const UserProfileCard = ({ avatar, name, profile, role, status }: UserProfileCardProps) => { const theme = useTheme(); const avatarProfile = avatar && avatarImage(`./${avatar}`).default; const imageProfile = profile && avatarImage(`./${profile}`).default; return ( {name} {role} {status === 'Active' ? ( ) : ( )} ); }; export default UserProfileCard;