aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/app/components/PlayerNameAndIcon.tsx
blob: 56423c1f22dc5c45ede0658539310c6d512a38e0 (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>
  );
}