<?php

namespace App\Filament\Admin\Resources\TypeProperties\Pages;

use App\Filament\Admin\Resources\TypeProperties\TypePropertyResource;
use Filament\Resources\Pages\CreateRecord;

class CreateTypeProperty extends CreateRecord
{
    protected static string $resource = TypePropertyResource::class;

    protected function getRedirectUrl(): string
    {
        // Esto redirige a la página de listado
        return $this->getResource()::getUrl('index');
    }
}
