import { PlayerProfile } from "../types/PlayerProfile"; import UserIcon from "./UserIcon"; type Props = { label: string; profile: PlayerProfile; }; export default function PlayerNameAndIcon({ label, profile }: Props) { return (
{label}
{profile.displayName}
{profile.iconPath && ( )}
); }