From b0621d15c675b7b8c1615b0699cc85ea1430a728 Mon Sep 17 00:00:00 2001
From: Kurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com>
Date: Mon, 21 Jul 2025 13:50:23 -0400
Subject: hooking clipboard automation button, hide plugin wiki for now (#118)

* hooking clipboard automation button, hide plugin wiki for now

* add direct copy to clip buttons for patch and unpatch
---
 src/components/FGModInstallerSection.tsx | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

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

diff --git a/src/components/FGModInstallerSection.tsx b/src/components/FGModInstallerSection.tsx
index 1e347c0..6777301 100644
--- a/src/components/FGModInstallerSection.tsx
+++ b/src/components/FGModInstallerSection.tsx
@@ -2,6 +2,7 @@ import { useState, useEffect } from "react";
 import { PanelSection, PanelSectionRow, ButtonItem } from "@decky/ui";
 import { runInstallFGMod, runUninstallFGMod } from "../api";
 import { OperationResult } from "./ResultDisplay";
+import { SmartClipboardButton } from "./SmartClipboardButton";
 import { createAutoCleanupTimer } from "../utils";
 import { TIMEOUTS, MESSAGES, STYLES } from "../utils/constants";
 
@@ -98,6 +99,22 @@ export function FGModInstallerSection({ pathExists, setPathExists }: FGModInstal
           </div>
         </PanelSectionRow>
       ) : null}
+      
+      {pathExists === true ? (
+        <SmartClipboardButton 
+          command="~/fgmod/fgmod %command%"
+          buttonText="Copy Patch Command"
+          successMessage="Patch command ready to paste"
+        />
+      ) : null}
+      
+      {pathExists === true ? (
+        <SmartClipboardButton 
+          command="~/fgmod/fgmod-uninstaller.sh %command%"
+          buttonText="Copy Unpatch Command"
+          successMessage="Unpatch command ready to paste"
+        />
+      ) : null}
     </PanelSection>
   );
 }
-- 
cgit v1.2.3

