import { FunctionComponent } from 'react' ; import { formatDate } from '../../../utils/format-date' ; type Props = { date : Date ; } ; const HTMLDate = ( { date } ) => ( < time dateTime = { date . toISOString ( ) } > { formatDate ( date ) } < /time>); export default HTMLDate ;