import { Moon, Sun } from 'lucide-react'; import { Button } from '@/components/ui/button'; import { useTheme } from '@/hooks/useTheme'; export function ThemeToggle() { const { theme, setTheme } = useTheme(); const toggleTheme = () => { console.log('🎨 Current theme:', theme); const newTheme = theme === 'light' ? 'dark' : 'light'; console.log('🎨 Switching to theme:', newTheme); setTheme(newTheme); }; const isDark = theme === 'dark'; return ( ); }