import { formatDate } from '@/lib/helpers' import { NextSeo } from 'next-seo' import Link from 'next/link' import React, { useEffect } from 'react' import 'highlight.js/styles/atom-one-dark.css' import hljs from 'highlight.js' function Article ({ title, excerpt, date_published, tags, html }) { useEffect(() => { hljs.highlightAll() }, [html]) return ( <>

{title}

Back... {date_published &&

{formatDate(date_published)}

}
{tags &&

Tags: {tags.join(', ')}

}
) } export default Article