summaryrefslogtreecommitdiff
path: root/src/components/ClipboardCommands.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/ClipboardCommands.tsx')
-rw-r--r--src/components/ClipboardCommands.tsx23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/components/ClipboardCommands.tsx b/src/components/ClipboardCommands.tsx
new file mode 100644
index 0000000..5a6f38f
--- /dev/null
+++ b/src/components/ClipboardCommands.tsx
@@ -0,0 +1,23 @@
+import { SmartClipboardButton } from "./SmartClipboardButton";
+
+interface ClipboardCommandsProps {
+ pathExists: boolean | null;
+}
+
+export function ClipboardCommands({ pathExists }: ClipboardCommandsProps) {
+ if (pathExists !== true) return null;
+
+ return (
+ <>
+ <SmartClipboardButton
+ command="~/fgmod/fgmod %command%"
+ buttonText="Copy Patch Command"
+ />
+
+ <SmartClipboardButton
+ command="~/fgmod/fgmod-uninstaller.sh %command%"
+ buttonText="Copy Unpatch Command"
+ />
+ </>
+ );
+}