import { Center, Loader, ScrollArea, SegmentedControl, Stack } from '@mantine/core'; import { IconBell } from '@tabler/icons-react'; import { __ } from '@wordpress/i18n'; import { Suspense, useState } from 'react'; import { Notifications } from './Notifications/Notifications'; export function Preferences() { const [section, setSection] = useState('notifications'); return (
setSection(value)} data={[ { value: 'notifications', label: (
{__('Notifications', 'scotty')}
), }, ]} />
{section === 'notifications' && ( } > )}
); }