import { ButtonItem, PanelSectionRow } from "@decky/ui"; import { FaDownload, FaTrash } from "react-icons/fa"; interface InstallationButtonProps { isInstalled: boolean; isInstalling: boolean; isUninstalling: boolean; onInstall: () => void; onUninstall: () => void; } export function InstallationButton({ isInstalled, isInstalling, isUninstalling, onInstall, onUninstall }: InstallationButtonProps) { const renderButtonContent = () => { if (isInstalling) { return (
Installing...
); } if (isUninstalling) { return (
Uninstalling...
); } if (isInstalled) { return (
Uninstall LSFG-VK
); } return (
Install LSFG-VK
); }; return ( {renderButtonContent()} ); }