import { useAtomValue } from "jotai"; import type { components } from "../../api/schema"; import { gamingLeftTimeSecondsAtom } from "../../states/watch"; import LeftTime from "../Gaming/LeftTime"; import Problem from "../Gaming/Problem"; type RankingEntry = components["schemas"]["RankingEntry"]; type Props = { gameDisplayName: string; ranking: RankingEntry[]; problemTitle: string; problemDescription: string; sampleCode: string; }; export default function GolfWatchAppGamingMultiplayer({ gameDisplayName, ranking, problemTitle, problemDescription, sampleCode, }: Props) { const leftTimeSeconds = useAtomValue(gamingLeftTimeSecondsAtom)!; return (
| 順位 | プレイヤー | スコア |
|---|---|---|
| {index + 1} | {entry.player.display_name} {entry.player.label && ` (${entry.player.label})`} | {entry.score} |