| "use client" | |
| import type { Assign } from "@ark-ui/react" | |
| import { | |
| type HTMLChakraProps, | |
| type RecipeProps, | |
| type UnstyledProp, | |
| createRecipeContext, | |
| } from "../../styled-system" | |
| const { withContext, PropsProvider } = createRecipeContext({ | |
| key: "heading", | |
| }) | |
| export interface HeadingProps | |
| extends Assign<HTMLChakraProps<"h2">, RecipeProps<"heading">>, | |
| UnstyledProp {} | |
| export const Heading = withContext<HTMLHeadingElement, HeadingProps>("h2") | |
| export const HeadingPropsProvider = | |
| PropsProvider as React.Provider<HeadingProps> | |