<?php

declare(strict_types=1);

namespace App\Modules\Tenants\Controllers;

use App\Modules\Tenants\Services\TenantService;

class TenantConsoleController
{
    public function __construct(private readonly TenantService $tenantService)
    {
    }

    public function index(): array
    {
        return [
            'view' => 'tenants.index',
            'data' => [
                'title' => 'Tenant Console',
                'overview' => $this->tenantService->adminOverview(),
            ],
        ];
    }
}
