import { ButtonItem, Field, PanelSection, PanelSectionRow } from "@decky/ui"; import { type SteamBranchStatus } from "../api/lsfgApi"; import t from "../i18n/i18n"; interface SetupTabProps { isInstalled: boolean; installationStatus: string; losslessScalingInstalled: boolean; losslessScalingStatus: string; steamBranchStatus: SteamBranchStatus | null; isInstalling: boolean; isUninstalling: boolean; onInstall: () => void; onUninstall: () => void; } export function SetupTab(props: SetupTabProps) { const { isInstalled, installationStatus, losslessScalingInstalled, losslessScalingStatus, steamBranchStatus, isInstalling, isUninstalling, onInstall, onUninstall, } = props; const losslessScalingAppInstalled = losslessScalingInstalled || steamBranchStatus?.installed === true; const buttonLabel = isInstalling ? t("INSTALL_INSTALLING", "Installing...") : isUninstalling ? t("INSTALL_UNINSTALLING", "Uninstalling...") : isInstalled ? t("INSTALL_UNINSTALL_BTN", "Uninstall LSFG-VK") : t("INSTALL_INSTALL_BTN", "Install LSFG-VK"); return ( {steamBranchStatus?.installed && ( )} {buttonLabel} ); }