mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-09 07:26:47 +00:00
14 lines
349 B
JavaScript
14 lines
349 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">
|
|
<NotionPage post={post} className='text-center ' />
|
|
</div>)} </>
|
|
}
|
|
export default Announcement
|