import type { GameId, Region } from "../../shared/schema.ts"; import { gameMeta } from "../../shared/games.ts"; import type { Prefs } from "../state/usePrefs.ts"; const REGIONS: Array<{ id: Region; label: string }> = [ { id: "america", label: "America" }, { id: "europe", label: "Europe" }, { id: "asia", label: "Asia" }, ]; export function Controls({ games, prefs, onToggleGame, onUpdate, ignoredCount, onExport, onImport, }: { games: GameId[]; prefs: Prefs; onToggleGame: (g: GameId) => void; onUpdate: (p: Partial) => void; ignoredCount: number; onExport: () => void; onImport: (file: File) => void; }) { return (

Games

{games.map((id) => { const game = gameMeta(id); const on = !prefs.hiddenGames.includes(id); return ( ); })}

Server region

{REGIONS.map((r) => ( ))}
{ignoredCount > 0 && ( )}

Your progress

Completed events are saved in this browser only — there is no account. Move them to another device with a file.

); }