mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-19 15:09:36 +00:00
19 lines
428 B
JavaScript
19 lines
428 B
JavaScript
import dynamic from 'next/dynamic'
|
|
|
|
const NotionPage = dynamic(() => import('@/components/NotionPage'))
|
|
|
|
const Announcement = ({ post, className }) => {
|
|
if (post?.blockMap) {
|
|
return <div >
|
|
{post && (
|
|
<div id="announcement-content">
|
|
<NotionPage post={post} />
|
|
</div>
|
|
)}
|
|
</div>
|
|
} else {
|
|
return <></>
|
|
}
|
|
}
|
|
export default Announcement
|