import Link from 'next/link' import { useGlobal } from '@/lib/global' import formatDate from '@/lib/formatDate' import CONFIG_SIMPLE from '../config_simple' import BLOG from '@/blog.config' export const ArticleInfo = (props) => { const { post } = props const { locale } = useGlobal() const date = formatDate(post?.date?.start_date || post?.createdTime, locale.LOCALE) return (

{post.title}

{post?.type !== 'Page' && (<>
{BLOG.AUTHOR} - {post.date?.start_date || post.createdTime} {post.category && - {post.category}} {post.tags && post.tags?.length > 0 && post.tags.map(t => / {t})}
)} {post?.type !== 'Page' && (<> {date} | {locale.COMMON.LAST_EDITED_TIME}: {post.lastEditedTime} |   )}
) }