mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-13 23:16:47 +00:00
14 lines
341 B
JavaScript
14 lines
341 B
JavaScript
import dynamic from 'next/dynamic'
|
|
|
|
const NotionPage = dynamic(() => import('@/components/NotionPage'))
|
|
|
|
const Announcement = ({ post, className }) => {
|
|
if (!post) {
|
|
return <></>
|
|
}
|
|
return <>{post && (<div id="announcement-content" className='px-3'>
|
|
<NotionPage post={post} />
|
|
</div>)} </>
|
|
}
|
|
export default Announcement
|