<?php

declare(strict_types=1);

namespace ImovelZapAi\Organizations\Presentation\Http\Controllers;

use Illuminate\Contracts\View\View;
use ImovelZapAi\Organizations\Application\Queries\GetOrganizationPlanUsageQuery;
use ImovelZapAi\Tenancy\Support\TenantContext;

final class OrganizationPlanController
{
    public function index(GetOrganizationPlanUsageQuery $query): View
    {
        return view('organizations.plan', $query->execute((string) TenantContext::id()));
    }
}
