blob: f96b460212852da067b660bcdaab52c98b79f778 (
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
25
26
27
28
29
|
import { SmartClipboardButton } from "./SmartClipboardButton";
import type { CustomOverrideConfig } from "../types/index";
interface ClipboardCommandsProps {
pathExists: boolean | null;
overrideConfig?: CustomOverrideConfig | null;
}
export function ClipboardCommands({ pathExists, overrideConfig }: ClipboardCommandsProps) {
if (pathExists !== true) return null;
const patchCommand = overrideConfig
? `${overrideConfig.envAssignment} ~/fgmod/fgmod %command%`
: "~/fgmod/fgmod %command%";
return (
<>
<SmartClipboardButton
command={patchCommand}
buttonText="Copy Patch Command"
/>
<SmartClipboardButton
command="~/fgmod/fgmod-uninstaller.sh %command%"
buttonText="Copy Unpatch Command"
/>
</>
);
}
|