import { Center, Group, Loader, ScrollArea, SegmentedControl, Stack } from '@mantine/core'; import { IconEye, IconGauge, IconLayoutBoard, IconPencil, IconPhoto, IconWorld, } from '@tabler/icons-react'; import { __ } from '@wordpress/i18n'; import { Suspense, useState } from 'react'; import { OptionsProvider, ResetOptions } from '../../Options'; import { Admin } from './Admin/Admin'; import { General } from './General/General'; import { Media } from './Media/Media'; import { Performance } from './Performance/Performance'; import { Reading } from './Reading/Reading'; import { Writing } from './Writing/Writing'; export default function WordPress() { const [section, setSection] = useState('general'); return (
setSection(value)} data={[ { value: 'general', label: (
{__('General', 'scotty')}
), }, { value: 'admin', label: (
{__('Admin', 'scotty')}
), }, { value: 'writing', label: (
{__('Writing', 'scotty')}
), }, { value: 'reading', label: (
{__('Reading', 'scotty')}
), }, { value: 'performance', label: (
{__('Performance', 'scotty')}
), }, { value: 'media', label: (
{__('Media', 'scotty')}
), }, ]} />
} > {section === 'general' && } {section === 'admin' && } {section === 'writing' && } {section === 'reading' && } {section === 'performance' && } {section === 'media' && }
); }