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

{post?.title}

{post?.publishDay} {post?.type !== 'Page' && ( <> {post?.category} )}
{post?.tags?.length > 0 && ( <> {locale.COMMON.TAGS} : )} {post?.tags?.map(tag => { return ( {tag} ) })}
) }