import PrismicHtmlBlock from '../PrismicHtmlBlock/PrismicHtmlBlock' ; import { HTMLString } from '../../../services/prismic/types' ; import { font , classNames } from '../../../utils/classnames' ; import { HTMLSerializer } from 'prismic-reactjs' ; import { ReactElement } from 'react' ; type Props = { html : HTMLString ; htmlSerializer ? : HTMLSerializer < ReactElement > ; } ; const FeaturedText = ( { html , htmlSerializer } ) => ( < div className = { classNames ( { 'body-text' : true , [ font ( 'hnr' , 4 ) ] : true , } ) } > < PrismicHtmlBlock html = { html } htmlSerializer = { htmlSerializer } / > < /div>); export default FeaturedText ;