"use client" import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue, } from "@/components/ui/select" import { Switch } from "@/components/ui/switch" import { Label } from "@/components/ui/label" import { Game, GameType } from "@/app/games/types" import { games } from "@/app/games" import { Engine, EngineType, engines } from "@/app/engine/engines" import { cn } from "@/lib/utils" export function TopMenu({ engine, defaultGame, game, debug, clearCache, onChangeEngine, onChangeGame, onToggleDebug, onToggleClearCache, }: { engine: Engine, defaultGame: string game: Game debug: boolean clearCache: boolean onChangeEngine: (newEngine: EngineType) => void onChangeGame: (newGameType: GameType) => void onToggleDebug: (isToggledOn: boolean) => void onToggleClearCache: (shouldClearCache: boolean) => void }) { return (