import { Hash } from "@hyper-hyper-space/core"; import { Home } from "@hyper-hyper-space/home"; import { Avatar, Chip, ListItemIcon, ListItemText, Typography, } from "@mui/material"; import { Stack } from "@mui/material"; import { ReactElement } from "react"; import { useOutletContext } from "react-router"; import { Contact } from "../../../model/ProfileUtils"; import { SpaceContext } from "../../space/SpaceFrame"; export default (props: { contact: Contact; selfHash?: Hash; chips?: Array; }) => { const { contact } = props; return ( <> {contact.picture !== undefined && ( )} {contact.picture === undefined && ( {contact.initials} )} {contact.name} {contact.hash === props.selfHash && ( )} { props.chips } } secondary={contact.code} /> ); };