Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/openstatusHQ/openstatus. ๐ซ Status page with uptime monitoring & API monitoring as code ๐ซ openstatus.dev
bun drizzle-orm monitoring monitoring-as-code nextjs observability on-call open-source shadcn-ui status-page statuspage synthetic-monitoring tinybird turso uptime uptime-checker uptime-monitor
Something went wrong. Try again.
563 B ยท 26 lines
TSX
123456789101112131415161718192021222324252627import NextLink from "next/link";
import { cn } from "@/lib/utils";
// TODO: we could add cva variants for the link
export function Link({ children, className, ...props}: React.ComponentProps<typeof NextLink>) { const isExternal = props.href?.toString().startsWith("http"); const externalProps = isExternal ? { target: "_blank", rel: "noopener noreferrer" } : {};
return ( <NextLink className={cn("text-foreground font-medium", className)} {...externalProps} {...props} > {children} </NextLink> );}