import Link from 'next/link' import { useGlobal } from '@/lib/global' import formatDate from '@/lib/formatDate' export const ArticleInfo = (props) => { const { post } = props const { locale } = useGlobal() const date = formatDate(post?.date?.start_date || post?.createdTime, locale.LOCALE) return (
{post?.type !== 'Page' && <> {post.category} | } {post?.type !== 'Page' && (<> {date} | {locale.COMMON.LAST_EDITED_TIME}: {post.lastEditedTime} |   )}
) }