blog / themes /heo /components /Announcement.js
sandy-try's picture
Upload 699 files
1b72d7e verified
raw
history blame contribute delete
428 Bytes
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