(category: string)
| 18 | const { toast } = useToast(); |
| 19 | |
| 20 | function handleFilterButton(category: string) { |
| 21 | if (selectedCategory.includes(category)) { |
| 22 | setSelectedCategory(selectedCategory.filter((item) => item !== category)); |
| 23 | } else { |
| 24 | setSelectedCategory([...selectedCategory, category]); |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | return ( |
| 29 | <div> |