blob: b8cf6bfe3960853ad4c4ceb4cdeef4ad96cf53fa (
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
30
|
import { SmartClipboardButton } from "./SmartClipboardButton";
import { DEFAULT_PROXY_DLL } from "../utils/constants";
interface ClipboardCommandsProps {
pathExists: boolean | null;
dllName: string;
}
export function ClipboardCommands({ pathExists, dllName }: ClipboardCommandsProps) {
if (pathExists !== true) return null;
const launchCommand =
dllName === DEFAULT_PROXY_DLL
? "~/fgmod/fgmod %command%"
: `DLL=${dllName} ~/fgmod/fgmod %command%`;
return (
<>
<SmartClipboardButton
command={launchCommand}
buttonText="Copy Patch Command"
/>
<SmartClipboardButton
command="~/fgmod/fgmod-uninstaller.sh %command%"
buttonText="Copy Unpatch Command"
/>
</>
);
}
|