"use client" import { GitBranch } from "lucide-react" import { HardwareStep } from "./hardware-step" import { AntiCheatStep, type AntiCheatData } from "./anti-cheat-step" export interface GameVersionInfo { id: string versionString: string | null buildId: string | null isLatest: boolean } interface SetupStepProps { gameId: string gameVersions: GameVersionInfo[] hardwareSlug: string onHardwareChange: (slug: string) => void hardwareName: string selectedVersionId: string onVersionChange: (versionId: string) => void newVersionString: string onNewVersionStringChange: (value: string) => void isCreatingVersion: boolean antiCheat: AntiCheatData onAntiCheatChange: (data: AntiCheatData) => void platformSupport: { hardwareSlug: string antiCheatRelevant: boolean antiCheatName: string | null antiCheatStatus: "none" | "supported" | "unsupported" | "unknown" }[] } export function SetupStep({ // eslint-disable-next-line @typescript-eslint/no-unused-vars gameId: _gameId, gameVersions, hardwareSlug, onHardwareChange, // eslint-disable-next-line @typescript-eslint/no-unused-vars hardwareName: _hardwareName, selectedVersionId, onVersionChange, newVersionString, onNewVersionStringChange, isCreatingVersion, antiCheat, onAntiCheatChange, platformSupport, }: SetupStepProps) { const isNewVersion = selectedVersionId === "__new__" return (
{/* Hardware Section */}
{/* Game Version Section */}

Game Version

Which version of the game did you test? This helps others know if benchmarks match their version.

{isNewVersion && (
onNewVersionStringChange(e.target.value)} placeholder="e.g. 1.2.3, Patch 4.0, Hotfix Jan 2025" className="w-full px-4 py-3 rounded-lg border border-border bg-text/5 text-text text-sm placeholder:text-text/40 outline-none focus:border-primary focus:ring-2 focus:ring-primary/50 transition-colors" disabled={isCreatingVersion} />

Enter the game version you tested. This will create a new version entry.

)}
{/* Anti-Cheat Section */}
) }