import { Article } from '@/types/content-types' import { Icon } from './Icon' type ArticleDetailsProps = { article: Article } export function ArticleDetails({ article: { sourceUrl, date } }: ArticleDetailsProps) { return (
Edit this page {date && (
Last edited on{' '} {Intl.DateTimeFormat('en-gb', { year: 'numeric', month: 'long', day: 'numeric', }).format(new Date(date))}
)}
) }