import { useAtomValue } from "jotai"; import { startingLeftTimeSecondsAtom } from "../../states/play"; type Props = { gameDisplayName: string; }; export default function GolfPlayAppStarting({ gameDisplayName }: Props) { const leftTimeSeconds = useAtomValue(startingLeftTimeSecondsAtom)!; return (
{gameDisplayName}
{leftTimeSeconds}
); }