import { FC } from 'react'; import { bottomClass, dividerClass, inner, outerClass, textClass, topClass, } from './style'; import { useFitCapsToHeight } from './useFitCapsToHeight'; const [topText, bottomText] = ['FONT', 'SIZE']; const Divider = () =>
; export const Demo: FC = () => { const { ref, fontSize, lineHeight } = useFitCapsToHeight(); const Text: FC = ({ children }) => (
{children}
); return ( <>
{topText}
{bottomText}
); };