From 0b5e71fe916e92ef9ecf7de91ca43371c4bd6d25 Mon Sep 17 00:00:00 2001
From: Kurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com>
Date: Tue, 29 Jul 2025 07:53:45 -0700
Subject: wording and layout tweaks (#125)

* wording and layout tweaks

* red in remove button

* reorganize frontend components

* fix ld preload permissions issue for decky 3.1.10

* bump ver
---
 src/components/InstallationStatus.tsx | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)
 create mode 100644 src/components/InstallationStatus.tsx

(limited to 'src/components/InstallationStatus.tsx')

diff --git a/src/components/InstallationStatus.tsx b/src/components/InstallationStatus.tsx
new file mode 100644
index 0000000..713b5e1
--- /dev/null
+++ b/src/components/InstallationStatus.tsx
@@ -0,0 +1,28 @@
+import { PanelSectionRow, ButtonItem } from "@decky/ui";
+import { MESSAGES, STYLES } from "../utils/constants";
+
+interface InstallationStatusProps {
+  pathExists: boolean | null;
+  installing: boolean;
+  onInstallClick: () => void;
+}
+
+export function InstallationStatus({ pathExists, installing, onInstallClick }: InstallationStatusProps) {
+  if (pathExists !== false) return null;
+
+  return (
+    <>
+      <PanelSectionRow>
+        <div style={STYLES.statusNotInstalled}>
+          {MESSAGES.modNotInstalled}
+        </div>
+      </PanelSectionRow>
+      
+      <PanelSectionRow>
+        <ButtonItem layout="below" onClick={onInstallClick} disabled={installing}>
+          {installing ? MESSAGES.installing : MESSAGES.installButton}
+        </ButtonItem>
+      </PanelSectionRow>
+    </>
+  );
+}
-- 
cgit v1.2.3

