diff options
| author | xXJSONDeruloXx <danielhimebauch@gmail.com> | 2025-09-26 11:32:03 -0400 |
|---|---|---|
| committer | xXJSONDeruloXx <danielhimebauch@gmail.com> | 2025-09-26 11:32:03 -0400 |
| commit | cbed25162a1058e67180aafb8fbd424bf2573e95 (patch) | |
| tree | 2fe26b782b316ed69b7c1c99da443de89e75e9b1 /src/components/ClipboardCommands.tsx | |
| parent | 6810b97dbfcd3d8875fe8e0d0725b146184120bb (diff) | |
| download | Decky-Framegen-cbed25162a1058e67180aafb8fbd424bf2573e95.tar.gz Decky-Framegen-cbed25162a1058e67180aafb8fbd424bf2573e95.zip | |
initial path override ui and be
Diffstat (limited to 'src/components/ClipboardCommands.tsx')
| -rw-r--r-- | src/components/ClipboardCommands.tsx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/components/ClipboardCommands.tsx b/src/components/ClipboardCommands.tsx index 5a6f38f..f96b460 100644 --- a/src/components/ClipboardCommands.tsx +++ b/src/components/ClipboardCommands.tsx @@ -1,16 +1,22 @@ import { SmartClipboardButton } from "./SmartClipboardButton"; +import type { CustomOverrideConfig } from "../types/index"; interface ClipboardCommandsProps { pathExists: boolean | null; + overrideConfig?: CustomOverrideConfig | null; } -export function ClipboardCommands({ pathExists }: ClipboardCommandsProps) { +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="~/fgmod/fgmod %command%" + command={patchCommand} buttonText="Copy Patch Command" /> |
