Files
NotionNext/themes/game/components/BlogListPage.js
tangly1024.com dedbb0f811 theme-game 微调
2024-03-22 17:08:40 +08:00

26 lines
631 B
JavaScript

import { siteConfig } from '@/lib/config'
import { GameListIndexCombine } from './GameListIndexCombine'
import PaginationSimple from './PaginationSimple'
/**
* 分页博客列表
* @param {*} props
* @returns
*/
export const BlogListPage = props => {
const { page = 1, postCount } = props
const totalPage = Math.ceil(
postCount / parseInt(siteConfig('POSTS_PER_PAGE'))
)
const showNext = page < totalPage
return (
<>
<div id='posts-wrapper' className='my-4 select-none'>
<GameListIndexCombine {...props} />
</div>
<PaginationSimple page={page} showNext={showNext} />
</>
)
}