import CategoryItem from './CategoryItem' const CategoryGroup = ({ currentCategory, categoryOptions }) => { if (!categoryOptions) { return <> } return
分类
{categoryOptions?.map(category => { const selected = currentCategory === category.name return })}
} export default CategoryGroup