mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-06-05 19:35:27 -04:00
5a1636baa3
- Replace Biome with oxlint + oxfmt (OXC toolchain) for linting and formatting - Add .oxlintrc.json and .oxfmtrc.json configuration files - Update VS Code settings and devcontainer to use oxc-vscode extension - Remove contact form, Resend email integration, and related server action/schema - Remove unused UI components (accordion, alert, card, tabs, toggle, etc.)
29 lines
596 B
TypeScript
29 lines
596 B
TypeScript
import { LinkIcon } from "lucide-react";
|
|
|
|
import { cn } from "@/lib/utils";
|
|
|
|
const HeadingAnchor = ({
|
|
id,
|
|
title,
|
|
className,
|
|
}: {
|
|
id: string;
|
|
title: string;
|
|
className?: string;
|
|
}) => (
|
|
<a
|
|
href={`#${id}`}
|
|
className={cn(
|
|
"text-muted-foreground hover:text-primary ml-2 inline-block px-2 align-baseline hover:no-underline",
|
|
className,
|
|
)}
|
|
aria-hidden="true"
|
|
tabIndex={-1}
|
|
>
|
|
<LinkIcon className="inline-block size-[0.75em] align-baseline" />
|
|
<span className="sr-only">Permalink to “{title}”</span>
|
|
</a>
|
|
);
|
|
|
|
export { HeadingAnchor };
|