<?php

namespace LaraBB\Category\UI\Web\Handlers\Admin;

use App\Http\Controllers\Controller;
use Illuminate\Contracts\View\View;
use Illuminate\View\Factory;

/**
 * Class CreateHandler
 * @package LaraBB\Category\UI\Web\Handlers\Admin
 */
class CreateHandler extends Controller
{
    /**
     * @param Factory $view
     */
    public function __construct(private readonly Factory $view)
    {
    }

    /**
     * @return View
     */
    public function __invoke(): View
    {
        return $this->view->make('category::admin.create-edit', [
            'active' => 'forums'
        ]);
    }
}
