blob: c9c7f20e90b27acf90913159c6afe7aaad10e105 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
import { PlayerProfile } from "../types/PlayerProfile";
import UserIcon from "./UserIcon";
type Props = {
label: string;
profile: PlayerProfile;
};
export default function PlayerNameAndIcon({ label, profile }: Props) {
return (
<div className="flex flex-col gap-6 my-auto items-center">
<div className="flex flex-col gap-2">
<div className="text-4xl">{label}</div>
<div className="text-6xl">{profile.displayName}</div>
</div>
{profile.iconPath && (
<UserIcon
iconPath={profile.iconPath}
displayName={profile.displayName}
className="w-48 h-48"
/>
)}
</div>
);
}
|