import React from "react"; import styles from "./TextBlock.module.scss"; import { utils } from "../../main"; interface Props { /** * Header text and size */ header?: 1 | 2 | 3 | 4 | 5 | 6 | false; /** * Text value */ children: string; } export interface RefInstance {} const TextBlock = React.forwardRef((props, ref) => { props = utils.mergeObject( { children: "", header: false, }, props ); return (
{props.children}
); }); export default TextBlock;