import Comment from '@/components/Comment' import NotionPage from '@/components/NotionPage' import formatDate from '@/lib/formatDate' import { useGlobal } from '@/lib/global' import Link from 'next/link' import ArticleAround from './ArticleAround' /** * * @param {*} param0 * @returns */ export default function ArticleDetail({ post, recommendPosts, prev, next }) { const { locale } = useGlobal() const date = formatDate(post?.date?.start_date || post.createdTime, locale.LOCALE) return (
{post.type && !post.type.includes('Page') && post?.page_cover && (
{/* eslint-disable-next-line @next/next/no-img-element */} {post.title}
)}
{/* 文章Title */}
{post.title}
{post.category} | {post.type[0] !== 'Page' && (<> {date} | {locale.COMMON.LAST_EDITED_TIME}: {post.lastEditedTime} )}
 
{/* Notion文章主体 */}
{post.blockMap && }
{/* 文章内嵌广告 */}
{/* 评论互动 */}
) }