<?php

declare(strict_types=1);

namespace App\Framework\LiveComponents\Debug;

use App\Framework\Attributes\Initializer;
use App\Framework\DI\Container;
use App\Framework\LiveComponents\ComponentRegistry;

/**
 * Debug Panel Initializer
 *
 * Registers debug panel in container and injects into ComponentRegistry
 * if development environment is detected.
 */
final readonly class DebugPanelInitializer
{
    #[Initializer]
    public function __invoke(Container $container): DebugPanelRenderer
    {
        // Create debug panel instance
        // Auto-registered in container for DI
        return new DebugPanelRenderer();
    }
}
