import { Avatar, Box, Card, CardHeader, Typography } from "@mui/material"; import React from "react"; import { ProfileType } from "../../types"; const ProfileTop = ({ profile: { status, company, location, website, social, user: { name, avatar }, }, }: { profile: ProfileType; }) => { console.log(avatar) return ( <> {name} {status} {company ? at {company} : null} {location ? {location} : null} {website ? ( ) : null} {social ? Object.entries(social) .filter(([_, value]) => value) .map(([key, value]) => ( )) : null} ); }; export default ProfileTop;