mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-18 15:09:34 +00:00
21 lines
411 B
JavaScript
21 lines
411 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
|