mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
20 lines
568 B
JavaScript
20 lines
568 B
JavaScript
import LayoutBase from './LayoutBase'
|
|
import LatestPostsGroup from './components/LatestPostsGroup'
|
|
import BlogPostListPage from './components/BlogPostListPage'
|
|
import CONFIG_NEXT from './config_next'
|
|
|
|
export const LayoutPage = (props) => {
|
|
const { latestPosts } = props
|
|
return (
|
|
<LayoutBase
|
|
sideBarSlot={<LatestPostsGroup posts={latestPosts} />}
|
|
rightAreaSlot={CONFIG_NEXT.RIGHT_LATEST_POSTS && <LatestPostsGroup posts={latestPosts} />}
|
|
{...props}
|
|
>
|
|
<BlogPostListPage {...props}/>
|
|
</LayoutBase>
|
|
)
|
|
}
|
|
|
|
export default LayoutPage
|