<?php

/**
 * Menu Configuration
 *
 * Configuration for admin subscription menu items.
 *
 * @package ArraySubs\Features\SubscriptionAdmin\Services
 * @since 1.0.0
 */

namespace ArraySubs\Features\SubscriptionAdmin\Services;

defined('ABSPATH') || exit;

/**
 * Menu configuration
 */
class MenuConfig
{
    /**
     * Get subscription menu items
     *
     * @return array Menu items
     */
    public static function getMenuItems(): array
    {
        return [
            [
                'id' => 'subscriptions',
                'title' => __('Subscriptions', 'arraysubs'),
                'icon' => 'Repeat',
                'path' => '/subscriptions',
                'children' => [
                    [
                        'id' => 'all-subscriptions',
                        'title' => __('All Subscriptions', 'arraysubs'),
                        'path' => '/subscriptions',
                    ],
                    [
                        'id' => 'add-subscription',
                        'title' => __('Add New', 'arraysubs'),
                        'path' => '/subscriptions/form',
                    ],
                ],
            ],
        ];
    }
}
