aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/app/components/GolfPlayApps/GolfPlayAppWaiting.tsx
blob: a31e5f47765b81763c90f303c2cba15979aea0da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import { PlayerInfo } from "../../models/PlayerInfo";
import PlayerProfile from "../PlayerProfile";

type Props = {
	gameDisplayName: string;
	playerInfo: Omit<PlayerInfo, "code">;
};

export default function GolfPlayAppWaiting({
	gameDisplayName,
	playerInfo,
}: Props) {
	return (
		<div className="min-h-screen bg-gray-100 flex flex-col font-bold text-center">
			<div className="text-white bg-iosdc-japan p-10">
				<div className="text-4xl">{gameDisplayName}</div>
			</div>
			<div className="grow grid mx-auto text-black">
				<PlayerProfile playerInfo={playerInfo} label="You" />
			</div>
		</div>
	);
}