import { useUIStore } from '@/stores/uiStore' import { cn } from '@/lib/utils' import { Sun, Moon, Monitor } from 'lucide-react' type Theme = 'light' | 'dark' | 'system' const themeOptions: { value: Theme; label: string; icon: React.ComponentType<{ className?: string }> }[] = [ { value: 'light', label: 'Light', icon: Sun }, { value: 'dark', label: 'Dark', icon: Moon }, { value: 'system', label: 'System', icon: Monitor }, ] export function ThemeSwitcher() { const theme = useUIStore((s) => s.theme) const setTheme = useUIStore((s) => s.setTheme) return (
{themeOptions.map((option) => { const Icon = option.icon return ( ) })}
) }