import Link from 'next/link' import { useGlobal } from '@/lib/global' import CONFIG from '../config' import { siteConfig } from '@/lib/config' import { formatDateFmt } from '@/lib/formatDate' export const ArticleInfo = (props) => { const { post } = props const { locale } = useGlobal() return (

{post?.title}

{post?.type !== 'Page' && (<>
{siteConfig('AUTHOR')} - {post?.publishDay} {post?.category && - {post?.category}} {post?.tags && post?.tags?.length > 0 && post?.tags.map(t => / {t})}
)} {post?.type !== 'Page' && (<> {locale.COMMON.POST_TIME}: {post?.publishDay} | {locale.COMMON.LAST_EDITED_TIME}: {post?.lastEditedDay} |   )}
) }