summaryrefslogtreecommitdiff
path: root/src/components/ClipboardCommands.tsx
blob: d8229292b7d9213b9634eb5f1ce1075485975e5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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 enable launch command"
      />

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