import { PlayerInfo as FullPlayerInfo } from "../models/PlayerInfo"; import UserIcon from "./UserIcon"; type PlayerInfo = Pick; type Props = { playerInfo: PlayerInfo; label: string; }; export default function PlayerProfile({ playerInfo, label }: Props) { return (
{label}
{playerInfo.displayName}
{playerInfo.iconPath && ( )}
); }