<?php
namespace Components\Data\Mock;

use Components\Base;
use Components\Data\Contracts\AddonActionsProvider;

class MockAddonActionsProvider implements AddonActionsProvider
{
    public function getActionsForModule(string $module): array
    {
        $actions = [];

        // Show one illustrative action in dev to validate UI placement
        $actions[] = [
            'group' => 'setup',
            'label' => 'Mock: Configure Customer Groups',
            'icon' => Base::SVG_OUTLINE_USER_GROUP,
            'variant' => 'ghost',
            'size' => 'sm',
            'attrs' => [
                'command' => 'show-modal',
                'commandfor' => 'config-modal',
                'data-size' => 'full-margin',
                'hx-get' => '../external_modal.php',
                'hx-target' => '#config-modal-body',
                'hx-swap' => 'innerHTML',
            ],
        ];

        $actions[] = [
            'group' => 'other',
            'label' => 'Mock: Analytics',
            'icon' => Base::SVG_OUTLINE_CHART_PIE,
            'attrs' => [
                'command' => 'show-modal',
                'commandfor' => 'config-modal',
                'data-title' => 'Mock: Analytics',
                'data-size' => 'full',
                'data-url' => '../report_analytics_advanced.php?selected_module=' . $module,
                'hx-target' => '#config-modal-body',
                'hx-swap' => 'innerHTML',
            ],
        ];

        return $actions;
    }

    public function getGlobalActions(): array
    {
        return [];
    }
}
