start on custom server

This commit is contained in:
MapleLeaf
2022-01-02 23:36:50 -06:00
committed by Darius
parent 14450cc743
commit 41a22175e3
30 changed files with 2257 additions and 33 deletions

View File

@@ -0,0 +1,27 @@
import React from "react"
import { ExternalLink } from "./external-link"
export type AppLinkProps = {
type: "internal" | "external"
label: React.ReactNode
to: string
className?: string
}
export function AppLink(props: AppLinkProps) {
switch (props.type) {
case "internal":
return (
<a className={props.className} href={props.to}>
{props.label}
</a>
)
case "external":
return (
<ExternalLink className={props.className} href={props.to}>
{props.label}
</ExternalLink>
)
}
}