<?php

namespace App\Http\Controllers\Web;

use App\Http\Controllers\Controller;
use App\Services\Ai\TextAnalysisService;
use Illuminate\Http\Request;
use Illuminate\View\View;

final class TextAnalysisController extends Controller
{
    public function __construct(
        private readonly TextAnalysisService $textAnalysis,
    ) {}

    public function index(Request $request): View
    {
        return view('web.tools.text-analysis', [
            'limits' => $this->textAnalysis->limitsForUser($request->user()),
        ]);
    }
}
