import TagItemMini from './TagItemMini' import Comment from '@/components/Comment' import NotionPage from '@/components/NotionPage' import ShareBar from '@/components/ShareBar' import { useGlobal } from '@/lib/global' import Link from 'next/link' import ArticleAround from './ArticleAround' import { AdSlot } from '@/components/GoogleAdsense' import LazyImage from '@/components/LazyImage' import { formatDateFmt } from '@/lib/formatDate' import WWAds from '@/components/WWAds' import NotionIcon from '@/components/NotionIcon' /** * * @param {*} param0 * @returns */ export default function ArticleDetail(props) { const { post, prev, next } = props const { locale, fullWidth } = useGlobal() if (!post) { return <> } return (
{post?.type && !post?.type !== 'Page' && post?.pageCover && (
)}
{/* 文章Title */}
{post.title}
{post?.category && (<> {post.category} | )} {post?.type !== 'Page' && (<> {post?.publishDay} | {locale.COMMON.LAST_EDITED_TIME}: {post.lastEditedDay} )}
{post.tagItems && (
{post.tagItems.map(tag => ( ))}
)}
{/* Notion文章主体 */}
{post && }
{/* 分享 */}
{post?.type === 'Post' && } {/* 评论互动 */}
) }