"use client" import { GitBranch, DatabaseIcon, RefreshCwIcon } 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 } export interface SteamDBVersion { versionString: string | null buildId: string | null source?: string } 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" }[] steamdbVersion: SteamDBVersion | null steamdbLoading: boolean steamdbError: string | null onRefreshSteamDB: () => void } 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, steamdbVersion, steamdbLoading, steamdbError, onRefreshSteamDB, }: SetupStepProps) { const isNewVersion = selectedVersionId === "__new__" const isSteamDBVersion = selectedVersionId === "__steamdb__" const autoFetchEnabled = process.env.NEXT_PUBLIC_VERSION_AUTO_FETCH === "true" return (
Which version of the game did you test? This helps others know if benchmarks match their version.
{steamdbError}
)}Enter the game version you tested. This will create a new version entry.
Auto-Detected Version ({steamdbVersion.source ?? "unknown source"})
Version
{steamdbVersion.versionString || "—"}
Build ID
{steamdbVersion.buildId || "—"}
This version will be created when you submit your benchmark.