diff options
| author | Kurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com> | 2025-07-17 12:00:14 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-17 12:00:14 -0400 |
| commit | 8b3d4def33766f7306d8606ccf4b5e4425a5738a (patch) | |
| tree | 77672a46ad2571ce0eba19e28a73a5e49b3cbfca /src/components/DocumentationButton.tsx | |
| parent | ca0d5f0ec1f4ba21f4bf51f0f773d2b6bad45c93 (diff) | |
| download | Decky-Framegen-8b3d4def33766f7306d8606ccf4b5e4425a5738a.tar.gz Decky-Framegen-8b3d4def33766f7306d8606ccf4b5e4425a5738a.zip | |
Copy to clipboard Wiki button (#116)v0.11.0
* add initial wiki launch button
* update wiki link
* bump ver
* add opti wiki button
* update icons for web launches
Diffstat (limited to 'src/components/DocumentationButton.tsx')
| -rw-r--r-- | src/components/DocumentationButton.tsx | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/components/DocumentationButton.tsx b/src/components/DocumentationButton.tsx new file mode 100644 index 0000000..4125fd3 --- /dev/null +++ b/src/components/DocumentationButton.tsx @@ -0,0 +1,39 @@ +import { PanelSection, PanelSectionRow, ButtonItem } from "@decky/ui"; +import { FaClipboard, FaBook } from "react-icons/fa"; + +export function DocumentationButton() { + const handleDocClick = () => { + window.open("https://github.com/xXJSONDeruloXx/Decky-Framegen/wiki", "_blank"); + }; + + const handleOptiScalerClick = () => { + window.open("https://github.com/optiscaler/OptiScaler/wiki", "_blank"); + }; + + return ( + <PanelSection> + <PanelSectionRow> + <ButtonItem + layout="below" + onClick={handleDocClick} + > + <div style={{ display: "flex", alignItems: "center", gap: "8px" }}> + <FaClipboard /> + <div>Copy Launch Command</div> + </div> + </ButtonItem> + </PanelSectionRow> + <PanelSectionRow> + <ButtonItem + layout="below" + onClick={handleOptiScalerClick} + > + <div style={{ display: "flex", alignItems: "center", gap: "8px" }}> + <FaBook /> + <div>OptiScaler Wiki</div> + </div> + </ButtonItem> + </PanelSectionRow> + </PanelSection> + ); +} |
