import { formatBytes, formatDuration } from "@/lib/format"; import { KEY_BINDINGS } from "@/lib/pinball/keyBindings"; import type { TableInfo } from "@/lib/pinball/types"; export interface GameInfoPanelProps { tableInfo: TableInfo; loadTimeMs: number | null; } export default function GameInfoPanel({ tableInfo, loadTimeMs }: GameInfoPanelProps) { return (
TABLE
{tableInfo.name}
Source
{tableInfo.isDemo ? "Bundled demo" : "Your upload"}
Size
{tableInfo.isDemo ? "—" : formatBytes(tableInfo.sizeBytes)}
Load time
{loadTimeMs !== null ? formatDuration(loadTimeMs) : "—"}
CONTROLS
); }