import React from 'react'; import { useTheme } from '../contexts/ThemeContext'; const ThemeToggle: React.FC = () => { const { theme, setTheme, isDark } = useTheme(); const themes = [ { value: 'light', label: '라이트', icon: '☀️' }, { value: 'dark', label: '다크', icon: '🌙' }, { value: 'system', label: '시스템', icon: '💻' } ] as const; return (
테마:
{themes.map(({ value, label, icon }) => ( ))}
); }; export default ThemeToggle;