<?php

if (! defined('ABSPATH')) {
    exit;
}

/**
 * Admin menu configuration.
 *
 * Consumed by Hooks\Handlers\AdminMenuHandlers. The plugin renders a single
 * Vue SPA page; submenus deep-link into the SPA via a URL hash ('route').
 */
return [
    'page_title'    => '__PLUGIN_TITLE__',
    'menu_title'    => '__PLUGIN_TITLE__',
    'capability'    => 'manage_options',
    'slug'          => '__PLUGIN_NAME__',
    'position'      => 26,
    // Label for the auto-created first submenu (defaults to menu_title).
    'dashboard_label' => 'Dashboard',
    // SVG markup is base64-encoded at render time.
    'icon_svg'   => '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5" stroke="#CFCFDE" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>',
    'submenus'   => [
        [
            'menu_title' => 'Settings',
            'capability' => 'manage_options',
            // SPA hash route (see resources/js/routes.js).
            'route'      => '/settings',
        ],
    ],
];
