import React, { HTMLAttributes, forwardRef } from "react";
import classnames from "classnames";
import { Text } from "../Text";
import { bemHOF } from "../../utilities/bem";
const cn = bemHOF("Heading");
export interface HeadingProps extends HTMLAttributes {
as?: string;
}
const Heading = forwardRef((props, ref) => {
const { children, className, ...rest } = props;
const classes = classnames(cn(), className);
return (
{children}
);
});
const H1 = forwardRef((props, ref) => {
const { className, ...rest } = props;
return (
);
});
const H2 = forwardRef((props, ref) => {
const { className, ...rest } = props;
return (
);
});
const H3 = forwardRef((props, ref) => {
const { className, ...rest } = props;
return (
);
});
const H4 = forwardRef((props, ref) => {
const { className, ...rest } = props;
return (
);
});
const H5 = forwardRef((props, ref) => {
const { className, ...rest } = props;
return (
);
});
const H6 = forwardRef((props, ref) => {
const { className, ...rest } = props;
return (
);
});
const CompoundHeading = Object.assign(Heading, {
H1,
H2,
H3,
H4,
H5,
H6,
});
export { CompoundHeading as Heading };