import { useGlobal } from '@/lib/global' import { formatDateFmt } from '@/lib/utils/formatDate' import Link from 'next/link' /** * 文章详情的元信息 * 标题、作者、分类、标签、创建日期等等。 */ export const PostMeta = props => { const { post } = props const { locale } = useGlobal() return (
{post?.type !== 'Page' && ( <> {post?.category} | )} {post?.type !== 'Page' && ( <> {post?.publishDay} | {locale.COMMON.LAST_EDITED_TIME}: {post?.lastEditedDay} |   )}
) }