import { cn } from "~/utils/cn"; type Size = "xl" | "lg" | "md"; const SIZES: Record = { xl: "text-2xl", lg: "text-xl", md: "text-lg", }; type Props = { level?: 1 | 2 | 3; size?: Size; className?: string; children: React.ReactNode; }; export function Heading({ level = 1, size = "lg", className, children }: Props) { const Tag = `h${level}` as const; return {children}; } /** Sidebar / metadata section: small-caps title with a divider underneath. */ export function SidebarSection({ title, action, className, children, }: { title: React.ReactNode; action?: React.ReactNode; className?: string; children: React.ReactNode; }) { return (

{title}

{action}
{children}
); }