import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger, } from '@/components/ui/dropdown-menu' import { useTheme } from '@/hooks/useTheme' import { cn } from '@/lib/utils' export function ThemeSwitcher() { const themeOptions = [ { value: 'dark', label: 'Dark' }, { value: 'light', label: 'Light' }, { value: 'auto', label: 'System' }, ] const { setTheme, activeTheme } = useTheme() return ( {themeOptions.find((item) => item.value === activeTheme)?.label || 'Auto'} {themeOptions.map((item) => ( setTheme(item.value as 'auto' | 'light' | 'dark')} > {item.label} ))} ) }