summaryrefslogtreecommitdiff
path: root/src/components/ClipboardCommands.tsx
blob: 7bbd12d2f4502c238fa564713eb56ed77867a5a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import { SmartClipboardButton } from "./SmartClipboardButton";

interface ClipboardCommandsProps {
  pathExists: boolean | null;
  dllName: string;
}

export function ClipboardCommands({ pathExists, dllName }: ClipboardCommandsProps) {
  if (pathExists !== true) return null;

  return (
    <>
      <SmartClipboardButton
        command={`DLL=${dllName} ~/fgmod/fgmod %command%`}
        buttonText="Copy Patch Command"
      />

      <SmartClipboardButton
        command="~/fgmod/fgmod-uninstaller.sh %command%"
        buttonText="Copy Unpatch Command"
      />
    </>
  );
}