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.
425 B ยท 20 lines
TSX
123456789101112131415161718192021import Link from "next/link";import type React from "react";
export function CustomLink(props: React.ComponentProps<"a">) { const href = props.href ?? "";
if (href.startsWith("/")) { return ( <Link href={href} {...props}> {props.children} </Link> ); }
if (href.startsWith("#")) { return <a {...props} />; }
return <a target="_blank" rel="noopener noreferrer" {...props} />;}