import clsx from 'clsx' import { Row } from '../layout/row' import { CATEGORIES, CATEGORY_LIST } from '../../../common/categories' export function CategorySelector(props: { category: string setCategory: (category: string) => void className?: string }) { const { className, category, setCategory } = props return (
{ setCategory('all') }} /> {CATEGORY_LIST.map((cat) => ( { setCategory(cat) }} /> ))} ) } function CategoryButton(props: { category: string isFollowed: boolean toggle: () => void }) { const { toggle, category, isFollowed } = props return (
{category}
) }