aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/app/components/GolfWatchApps/GolfWatchAppStarting.tsx
blob: 82e5334d2f4534588141a0ba102b075d4e359ea3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { useAtomValue } from "jotai";
import { startingLeftTimeSecondsAtom } from "../../states/watch";

type Props = {
	gameDisplayName: string;
};

export default function GolfWatchAppStarting({ gameDisplayName }: Props) {
	const leftTimeSeconds = useAtomValue(startingLeftTimeSecondsAtom)!;

	return (
		<div className="min-h-screen bg-gray-100 flex flex-col">
			<div className="text-white bg-sky-600 p-10 text-center">
				<div className="text-4xl font-bold">{gameDisplayName}</div>
			</div>
			<div className="text-center text-black font-black text-10xl">
				{leftTimeSeconds}
			</div>
		</div>
	);
}