summaryrefslogtreecommitdiff
path: root/src/components/WikiButton.tsx
diff options
context:
space:
mode:
authorxXJSONDeruloXx <danielhimebauch@gmail.com>2025-07-14 22:57:38 -0400
committerxXJSONDeruloXx <danielhimebauch@gmail.com>2025-07-14 22:57:38 -0400
commit171959709a49899bdd1555cd07de1ab323a18ddb (patch)
treeb6e870c1740fadb92579f1d115f361a76536dadd /src/components/WikiButton.tsx
parent885b9a938f9c5193ab0259502d4f63e981fc4a26 (diff)
downloaddecky-lsfg-vk-171959709a49899bdd1555cd07de1ab323a18ddb.tar.gz
decky-lsfg-vk-171959709a49899bdd1555cd07de1ab323a18ddb.zip
separate wiki button into component
Diffstat (limited to 'src/components/WikiButton.tsx')
-rw-r--r--src/components/WikiButton.tsx22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/components/WikiButton.tsx b/src/components/WikiButton.tsx
new file mode 100644
index 0000000..80ff1d9
--- /dev/null
+++ b/src/components/WikiButton.tsx
@@ -0,0 +1,22 @@
+import { PanelSectionRow, ButtonItem } from "@decky/ui";
+import { FaExternalLinkAlt } from "react-icons/fa";
+
+export function WikiButton() {
+ const handleWikiClick = () => {
+ window.open("https://github.com/PancakeTAS/lsfg-vk/wiki", "_blank");
+ };
+
+ return (
+ <PanelSectionRow>
+ <ButtonItem
+ layout="below"
+ onClick={handleWikiClick}
+ >
+ <div style={{ display: "flex", alignItems: "center", gap: "8px" }}>
+ <FaExternalLinkAlt />
+ <div>LSFG-VK Wiki</div>
+ </div>
+ </ButtonItem>
+ </PanelSectionRow>
+ );
+}