aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/app/components/PlayerNameAndIcon.tsx
blob: 92b757de1277f0d36e5f90c8e1c1e105aef97c86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { PlayerProfile } from "../types/PlayerProfile";
import UserIcon from "./UserIcon";

type Props = {
	profile: PlayerProfile;
};

export default function PlayerNameAndIcon({ profile }: Props) {
	return (
		<div className="flex flex-col gap-6 my-auto items-center">
			<div className="text-6xl">{profile.displayName}</div>
			{profile.iconPath && (
				<UserIcon
					iconPath={profile.iconPath}
					displayName={profile.displayName}
					className="w-48 h-48"
				/>
			)}
		</div>
	);
}