import React, { type PropsWithChildren } from 'react'; import { headingTheme, type HeadingVariants } from './Heading.theme'; import { PolymorphicProps } from 'types/common'; export type HeadingElementType = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'; export type HeadingProps = PropsWithChildren>; export const Heading = ({ children, as, className, ...props }: HeadingProps) => { // Component is the element that will be rendered const Component = as ?? 'h1'; return ( {children} ); };