diff --git a/apps/website/src/components/Button.tsx b/apps/website/src/components/Button.tsx index 8556c0900..cb0e5022e 100644 --- a/apps/website/src/components/Button.tsx +++ b/apps/website/src/components/Button.tsx @@ -2,25 +2,42 @@ import { ComponentChildren } from "preact"; import Icon from "./Icon"; import "./Button.css"; -interface ButtonProps { +interface LinkProps { + className?: string; + href?: string; + openExternally?: boolean; + children: ComponentChildren; + title?: string; +} + +interface ButtonProps extends Omit { href?: string; iconSvg?: string; text: ComponentChildren; openExternally?: boolean; - className?: string; outline?: boolean; } -export default function Button({ href, iconSvg, openExternally, text, className, outline }: ButtonProps) { +export default function Button({ iconSvg, text, className, outline, ...restProps }: ButtonProps) { return ( - {iconSvg && <>{" "}} {text} + + ) +} + +export function Link({ openExternally, children, ...restProps }: LinkProps) { + return ( + + {children} ) } diff --git a/apps/website/src/components/Footer.tsx b/apps/website/src/components/Footer.tsx index a0423b671..577a2cd78 100644 --- a/apps/website/src/components/Footer.tsx +++ b/apps/website/src/components/Footer.tsx @@ -4,14 +4,15 @@ import githubIcon from "../assets/boxicons/bx-github.svg?raw"; import githubDiscussionsIcon from "../assets/boxicons/bx-discussion.svg?raw"; import matrixIcon from "../assets/boxicons/bx-message-dots.svg?raw"; import redditIcon from "../assets/boxicons/bx-reddit.svg?raw"; +import { Link } from "./Button"; export default function Footer() { return (