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