"use client"; import { useTheme } from "@/contexts/ThemeContext"; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue, } from "@/components/ui/select"; import { Sun, Moon, Accessibility } from "lucide-react"; const themes = [ { value: "light", label: "일반 모드", icon: Sun, color: "text-orange-500", emoji: "☀️" }, { value: "dark", label: "다크 모드", icon: Moon, color: "text-blue-400", emoji: "🌙" }, { value: "senior", label: "시니어 모드", icon: Accessibility, color: "text-green-500", emoji: "👓" }, ]; interface ThemeSelectProps { native?: boolean; } export function ThemeSelect({ native = true }: ThemeSelectProps) { const { theme, setTheme } = useTheme(); const currentTheme = themes.find((t) => t.value === theme); const CurrentIcon = currentTheme?.icon || Sun; // 네이티브 select if (native) { return (
); } // Radix UI 모달 select return ( ); }