import NotionIcon from '@/components/NotionIcon'
import NotionPage from '@/components/NotionPage'
import { siteConfig } from '@/lib/config'
import { useGlobal } from '@/lib/global'
import Link from 'next/link'
const BlogPost = ({ post }) => {
const { NOTION_CONFIG } = useGlobal()
const showPreview =
siteConfig('POST_LIST_PREVIEW', false, NOTION_CONFIG) && post?.blockMap
return (
{siteConfig('POST_TITLE_ICON') && (
)}
{post.title}
{!showPreview && (
{post.summary}
)}
{showPreview && post?.blockMap && (
)}
)
}
export default BlogPost