<?php
/**
 * Admin Menu Class
 *
 * Manages plugin admin menu structure
 *
 * @package SmartyPress_AI_Engine
 * @since 1.0.0
 */

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

/**
 * Admin Menu class
 */
class SmartyPress_AI_Admin_Menu {

	/**
	 * Main page slug
	 *
	 * @var string
	 */
	private $main_page_slug = 'smartypress-ai';

	/**
	 * Constructor
	 * 
	 * Note: This class is currently not used. Menu items are registered in Admin_App class.
	 * Kept for future extensibility.
	 */
	public function __construct() {
		// Menu items are now registered in Admin_App class
		// This class is kept for future extensibility via hooks
		// add_action( 'admin_menu', array( $this, 'register_menu_items' ), 20 );
	}

	/**
	 * Register menu items
	 * 
	 * Note: Submenu items are now managed by React Router within the admin app.
	 * Only the main menu and Dashboard submenu are registered in PHP.
	 * Other pages (Components, Settings, Content Generation) are accessible via React Router.
	 */
	public function register_menu_items() {
		// Main menu is registered by Admin App class
		// Submenu items are now managed by React Router
		// This class is kept for future extensibility via hooks

		// Allow modules to register their menu items (if needed in the future)
		do_action( 'smartypress_ai_register_admin_menu', $this->main_page_slug );
	}
}

