import React from 'react'; import { Theme } from '../types'; import { Leaf, Users, PartyPopper, History, Droplets, Dog, Recycle, } from 'lucide-react'; const THEMES: Theme[] = [ { id: 'nature', title: 'Natureza e Meio Ambiente', description: 'Explore as maravilhas do nosso planeta', icon: 'Leaf', sdsGoal: 13, category: 'environment', }, { id: 'indigenous', title: 'Povos Originários do Brasil', description: 'Conheça as culturas indígenas', icon: 'Users', sdsGoal: 10, category: 'culture', }, { id: 'traditions', title: 'Festas e Tradições Brasileiras', description: 'Celebre nossa cultura', icon: 'PartyPopper', sdsGoal: 11, category: 'culture', }, { id: 'quilombola', title: 'Histórias Quilombolas', description: 'Descubra nossa história', icon: 'History', sdsGoal: 10, category: 'culture', }, { id: 'water', title: 'Água é Vida', description: 'Aprenda sobre esse recurso precioso', icon: 'Droplets', sdsGoal: 6, category: 'environment', }, { id: 'animals', title: 'Animais Brasileiros', description: 'Conheça nossa fauna', icon: 'Dog', sdsGoal: 15, category: 'nature', }, { id: 'sustainable', title: 'Vivendo Sustentável', description: 'Cuide do nosso futuro', icon: 'Recycle', sdsGoal: 12, category: 'environment', }, ]; const IconMap = { Leaf, Users, PartyPopper, History, Droplets, Dog, Recycle, }; interface Props { onSelect: (theme: Theme) => void; } export function ThemeSelector({ onSelect }: Props) { const [selectedCategory, setSelectedCategory] = React.useState('all'); const filteredThemes = selectedCategory === 'all' ? THEMES : THEMES.filter((theme) => theme.category === selectedCategory); return (