import Comment from '@/components/Comment' import Link from 'next/link' import ArticleAround from './ArticleAround' import CategoryItem from './CategoryItem' import TagItemMini from './TagItemMini' import CONFIG_MEDIUM from '../config_medium' import formatDate from '@/lib/formatDate' import { useGlobal } from '@/lib/global' import BLOG from '@/blog.config' import NotionPage from '@/components/NotionPage' import React from 'react' export const ArticleDetail = props => { const { post, prev, next, siteInfo } = props const { locale } = useGlobal() const date = formatDate( post?.date?.start_date || post?.createdTime, locale.LOCALE ) return

{post?.title}

<> {/* eslint-disable-next-line @next/next/no-img-element */}
{BLOG.AUTHOR}
{date}
{locale.COMMON.LAST_EDITED_TIME}: {post.lastEditedTime}
 
{/* Notion文章主体 */}
{post && ()}
{/* 文章内嵌广告 */}
{CONFIG_MEDIUM.POST_DETAIL_CATEGORY && post.category && }
{CONFIG_MEDIUM.POST_DETAIL_TAG && post?.tagItems?.map(tag => )}
{post.type === 'Post' && }
}