From 634fd62b25169619ffcbf87beec8777bf5a0d9bd Mon Sep 17 00:00:00 2001
From: Adam <2363879+adamdotdevin@users.noreply.github.com>
Date: Thu, 11 Dec 2025 12:01:37 -0600
Subject: wip(desktop): progress

---
 packages/desktop/src/components/link.tsx | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 packages/desktop/src/components/link.tsx

(limited to 'packages/desktop/src/components/link.tsx')

diff --git a/packages/desktop/src/components/link.tsx b/packages/desktop/src/components/link.tsx
new file mode 100644
index 000000000..e13c31330
--- /dev/null
+++ b/packages/desktop/src/components/link.tsx
@@ -0,0 +1,17 @@
+import { ComponentProps, splitProps } from "solid-js"
+import { usePlatform } from "@/context/platform"
+
+export interface LinkProps extends ComponentProps<"button"> {
+  href: string
+}
+
+export function Link(props: LinkProps) {
+  const platform = usePlatform()
+  const [local, rest] = splitProps(props, ["href", "children"])
+
+  return (
+    <button class="text-text-strong underline" onClick={() => platform.openLink(local.href)} {...rest}>
+      {local.children}
+    </button>
+  )
+}
-- 
cgit v1.2.3

