chore: rename packages/desktop -> packages/app

This commit is contained in:
Adam
2025-12-22 19:38:50 -06:00
parent a4eebf9f08
commit 794fe8f381
74 changed files with 78 additions and 67 deletions

View File

@@ -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>
)
}