/** * Left-hand app navigation for the standalone theme options page — brand, * the top-level areas grouped into what ships with the theme and what a * companion plugin contributes, and a jump into the Customizer, where every * design section now lives. */ import { __ } from '@wordpress/i18n'; import { ArrowUpRight, Paintbrush } from 'lucide-react'; import Badge from './badge'; import moduleIcon from './module-icons'; import type { Area, AreaGroup, AreaKey } from './types'; interface SidebarProps { areas: Area[]; activeArea: AreaKey; onAreaChange: ( area: AreaKey ) => void; } /** * The nav's groups, in render order. * * Grouped by what each screen is for rather than by who ships it — the PRO * badge on an entry already carries provenance, so a "Theme"/"Extensions" split * spent both headings restating it. Setup leads because Modules decides which of * the rest even exist; Tools closes because backups and licensing are * housekeeping rather than configuration. */ const GROUPS: { key: AreaGroup; label: string }[] = [ { key: 'setup', label: __( 'Setup', 'aureon' ) }, { key: 'features', label: __( 'Features', 'aureon' ) }, // Login, registration, and who's allowed in — grouped apart from Features // because these are about *members*, not the site's own configuration, // and tend to be reached for together (Account Hub, Social Login, Sign // Up Form, Access Control all live here). { key: 'membership', label: __( 'Membership', 'aureon' ) }, { key: 'advanced', label: __( 'Advanced', 'aureon' ) }, { key: 'tools', label: __( 'Tools', 'aureon' ) }, ]; export default function Sidebar( { areas, activeArea, onAreaChange, }: SidebarProps ) { return ( ); }