File size: 428 Bytes
1b72d7e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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