import { forwardRef, type ElementType, type HTMLAttributes, type ReactNode } from "react"; import { cn } from "@/lib/utils"; type TypographyProps = HTMLAttributes & { as?: ElementType; children?: ReactNode; compressed?: boolean; courier?: boolean; expanded?: boolean; mondwest?: boolean; mono?: boolean; sans?: boolean; variant?: "sm" | "md" | "lg" | "xl"; }; const variantClasses: Record, string> = { sm: "leading-[1.4] text-[.9375rem] tracking-[0.1875rem]", md: "text-[2.625rem] leading-[1] tracking-[0.0525rem]", lg: "text-[2.625rem] leading-[1] tracking-[0.0525rem]", xl: "text-[4.5rem] leading-[1] tracking-[0.135rem]", }; export const Typography = forwardRef(function Typography( { as: Component = "span", className, compressed, courier, expanded, mondwest, mono, sans, variant, ...props }, ref, ) { const hasFontVariant = compressed || courier || expanded || mondwest || mono || sans; return ( ); }); export const H2 = forwardRef>(function H2( { className, variant = "lg", ...props }, ref, ) { return ; });