import { classNames } from "@repo/config-tailwind/classNames" import type { VariantProps } from "cva" import { cva } from "cva" const typographyVariants = cva({ variants: { variant: { h1: "text-4xl font-semibold", h2: "text-3xl font-semibold", h3: "text-2xl font-semibold", h4: "text-xl font-semibold", h5: "text-xl font-medium", h6: "text-lg font-medium", text1: "break-words text-base", text2: "break-words text-sm", }, }, }) export type TypographyProps = { as?: Component } & React.ComponentPropsWithoutRef & VariantProps /** * Typography and styling abstraction component used to ensure consistency and standardize text throughout your application. * @param props * @returns */ export const Typography = ( props: TypographyProps, ): React.ReactNode => { const { variant = "text1", as = "p", children, className, ...rest } = props const ComponentAs = as return ( {children} ) }