import React from 'react'; import { useTheme, type Theme } from '../../../contexts/ThemeContext'; import { IS_WORDPRESS } from '../../../constants'; import { Panel, SegmentedControl } from '../../ui'; const THEME_OPTIONS: { value: Theme; label: string }[] = [ { value: 'light', label: 'Light' }, { value: 'dark', label: 'Dark' }, { value: 'system', label: 'System' }, ]; const AppearanceSettingsSection: React.FC = () => { const { theme, setTheme } = useTheme(); return (

Theme

{IS_WORDPRESS ? 'Saved as a local plugin preference.' : 'Saved to your account.'}

setTheme(value)} />
); }; export default AppearanceSettingsSection;