import NavPostListEmpty from './NavPostListEmpty' import Link from 'next/link' /** * 博客列表滚动分页 * @param posts 所有文章 * @param tags 所有标签 * @returns {JSX.Element} * @constructor */ const NavPostList = (props) => { const { categoryOptions } = props if (!categoryOptions) { return } else { return
{categoryOptions?.map(category => { // const selected = currentCategory === category.name const selected = false return (
{category.name}({category.count})
) })}
} } export default NavPostList