diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-08-22 14:16:21 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-08-22 14:16:21 +0900 |
| commit | 81dd1db4daa57e67b1f603c260afe6cb526e5278 (patch) | |
| tree | 8e5a857769db577b034a9a0404e70cf6c2d2693a /frontend/app/components/PlayerNameAndIcon.tsx | |
| parent | 483e297f4789fb1fdaa241f87686a00ef55a046d (diff) | |
| parent | dfd33e58a5e6f830d60e978afad7348f7a16068d (diff) | |
| download | iosdc-japan-2024-albatross-81dd1db4daa57e67b1f603c260afe6cb526e5278.tar.gz iosdc-japan-2024-albatross-81dd1db4daa57e67b1f603c260afe6cb526e5278.tar.zst iosdc-japan-2024-albatross-81dd1db4daa57e67b1f603c260afe6cb526e5278.zip | |
Merge branch 'refactor/frontend-state'
Diffstat (limited to 'frontend/app/components/PlayerNameAndIcon.tsx')
| -rw-r--r-- | frontend/app/components/PlayerNameAndIcon.tsx | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/frontend/app/components/PlayerNameAndIcon.tsx b/frontend/app/components/PlayerNameAndIcon.tsx new file mode 100644 index 0000000..e9536e3 --- /dev/null +++ b/frontend/app/components/PlayerNameAndIcon.tsx @@ -0,0 +1,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"> + <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> + ); +} |
