"use client"; import { useTranslations } from 'next-intl'; import { useThemeStore } from '@/stores/theme-store'; import { useSettingsStore } from '@/stores/settings-store'; import { SettingsSection, SettingItem, RadioGroup, ToggleSwitch } from './settings-section'; export function AppearanceSettings() { const t = useTranslations('settings.appearance'); const { theme, setTheme } = useThemeStore(); const { fontSize, listDensity, animationsEnabled, updateSetting } = useSettingsStore(); return ( {/* Theme */} setTheme(value as 'light' | 'dark' | 'system')} options={[ { value: 'light', label: t('theme.light') }, { value: 'dark', label: t('theme.dark') }, { value: 'system', label: t('theme.system') }, ]} /> {/* Font Size */} updateSetting('fontSize', value as 'small' | 'medium' | 'large')} options={[ { value: 'small', label: t('font_size.small') }, { value: 'medium', label: t('font_size.medium') }, { value: 'large', label: t('font_size.large') }, ]} /> {/* List Density */} updateSetting('listDensity', value as 'compact' | 'regular' | 'comfortable') } options={[ { value: 'compact', label: t('list_density.compact') }, { value: 'regular', label: t('list_density.regular') }, { value: 'comfortable', label: t('list_density.comfortable') }, ]} /> {/* Animations */} updateSetting('animationsEnabled', checked)} /> ); }