mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-17 23:16:50 +00:00
19 lines
544 B
JavaScript
19 lines
544 B
JavaScript
import dynamic from 'next/dynamic'
|
|
|
|
const NotionPage = dynamic(() => import('@/components/NotionPage'))
|
|
|
|
const Announcement = ({ notice, className }) => {
|
|
if (notice?.blockMap) {
|
|
return <div className={className}>
|
|
<section id='announcement-wrapper' className='mb-10'>
|
|
{notice && (<div id="announcement-content">
|
|
<NotionPage post={notice} className='text-center ' />
|
|
</div>)}
|
|
</section>
|
|
</div>
|
|
} else {
|
|
return null
|
|
}
|
|
}
|
|
export default Announcement
|