import { ConfigurationData } from "../config/configSchema"; import type { GameTarget } from "../hooks/useGameConfiguration"; import { ConfigurationSection } from "./ConfigurationSection"; import { FpsMultiplierControl } from "./FpsMultiplierControl"; import { WorkaroundsSection } from "./WorkaroundsSection"; interface Props { config: ConfigurationData; onConfigChange: (fieldName: keyof ConfigurationData, value: boolean | number | string | string[]) => Promise; autoFocusFpsMultiplier?: boolean; onFpsMultiplierFocused?: () => void; showWorkarounds?: boolean; workaroundTarget?: Pick; } export function GameConfigurationControls({ config, onConfigChange, autoFocusFpsMultiplier, onFpsMultiplierFocused, showWorkarounds = false, workaroundTarget, }: Props) { return ( <> {showWorkarounds && workaroundTarget && ( )} ); }