diff options
| author | xXJSONDeruloXx <danielhimebauch@gmail.com> | 2025-07-13 00:04:54 -0400 |
|---|---|---|
| committer | xXJSONDeruloXx <danielhimebauch@gmail.com> | 2025-07-13 00:04:54 -0400 |
| commit | 77494457e2a4f5c80c3a2f7acb054b12d918d8ad (patch) | |
| tree | fad4c4dd2ce69a850b56078444427866dedce9fa /src/components/StatusDisplay.tsx | |
| parent | 6cfcaa6c169cb8c898775eee276ff2497ab8f45c (diff) | |
| download | decky-lsfg-vk-77494457e2a4f5c80c3a2f7acb054b12d918d8ad.tar.gz decky-lsfg-vk-77494457e2a4f5c80c3a2f7acb054b12d918d8ad.zip | |
restructure for maintainability
Diffstat (limited to 'src/components/StatusDisplay.tsx')
| -rw-r--r-- | src/components/StatusDisplay.tsx | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/components/StatusDisplay.tsx b/src/components/StatusDisplay.tsx new file mode 100644 index 0000000..8eecd42 --- /dev/null +++ b/src/components/StatusDisplay.tsx @@ -0,0 +1,38 @@ +import { PanelSectionRow } from "@decky/ui"; + +interface StatusDisplayProps { + dllDetected: boolean; + dllDetectionStatus: string; + isInstalled: boolean; + installationStatus: string; +} + +export function StatusDisplay({ + dllDetected, + dllDetectionStatus, + isInstalled, + installationStatus +}: StatusDisplayProps) { + return ( + <PanelSectionRow> + <div style={{ marginBottom: "8px", fontSize: "14px" }}> + <div + style={{ + color: dllDetected ? "#4CAF50" : "#F44336", + fontWeight: "bold", + marginBottom: "4px" + }} + > + {dllDetectionStatus} + </div> + <div + style={{ + color: isInstalled ? "#4CAF50" : "#FF9800" + }} + > + Status: {installationStatus} + </div> + </div> + </PanelSectionRow> + ); +} |
