import React, { FC } from 'react'; import { TypographyProps } from '../../interfaces'; import { StyledTypography } from './styles'; const Typography: FC = ({ children, variant, bold, as, ...rest }) => { switch (variant) { case 'h1': return ( {children} ); case 'h2': return ( {children} ); case 'h3': return ( {children} ); case 'h4': return ( {children} ); case 'h5': return ( {children} ); case 'utility1': case 'utility2': case 'utility3': case 'utility4': case 'utility5': return ( {children} ); default: return ( {children} ); } }; export default Typography;