"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 } 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 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, onRefreshSteamDB, }: SetupStepProps) { const isNewVersion = selectedVersionId === "__new__" const isSteamDBVersion = selectedVersionId === "__steamdb__" return (
Which version of the game did you test? This helps others know if benchmarks match their version.
Enter the game version you tested. This will create a new version entry.
SteamDB Suggestion
Version
{steamdbVersion.versionString || "—"}
Build ID
{steamdbVersion.buildId || "—"}
This version will be created when you submit your benchmark.