import type { ComponentProps } from "react" import { tv, type VariantProps } from "tailwind-variants" export const heading = tv({ base: "w-full scroll-m-20 tracking-tight", variants: { level: { h1: "border-b pb-2 font-extrabold text-3xl", h2: "font-semibold text-2xl group-data-[heading-level]:mt-10", h3: "font-semibold text-xl group-data-[heading-level]:mt-8", h4: "font-semibold text-xl group-data-[heading-level]:mt-8", }, }, }) export type HeadingLevel = NonNullable["level"]> export type HeadingProps = ComponentProps & { level: Level } export const Heading = ({ className, level, ...props }: HeadingProps) => { const Comp = level as string return } export const Heading1 = (props: Omit, "level">) => ( ) export const Heading2 = (props: Omit, "level">) => ( ) export const Heading3 = (props: Omit, "level">) => ( ) export const Heading4 = (props: Omit, "level">) => ( )