import { Moon, Sun, Monitor } from 'lucide-react'; import { Button } from './ui/button'; import { useTheme } from '../contexts/ThemeContext'; export function ThemeToggle() { const { theme, setTheme } = useTheme(); const cycleTheme = () => { if (theme === 'light') { setTheme('dark'); } else if (theme === 'dark') { setTheme('system'); } else { setTheme('light'); } }; const getIcon = () => { switch (theme) { case 'light': return ; case 'dark': return ; default: return ; } }; const getLabel = () => { switch (theme) { case 'light': return 'Light mode'; case 'dark': return 'Dark mode'; default: return 'System theme'; } }; return ( ); }