import Link from 'next/link' import { useGlobal } from '@/lib/global' import formatDate from '@/lib/formatDate' import TagItemMiddle from './TagItemMiddle' import WordCount from './WordCount' export const ArticleInfo = (props) => { const { post } = props const { locale } = useGlobal() const date = formatDate(post?.date?.start_date || post?.createdTime, locale.LOCALE) return (
{post.tagItems && (
{post.tagItems.map(tag => ( ))}
)}
{post?.type !== 'Page' && (<> 发布日期:{date} 更新日期: {post.lastEditedTime} )}
) }