coolify/app/View/Components/Modal.php
Andras Bacsai a0b2868e95 UI stuffs
2023-07-13 13:16:24 +02:00

34 lines
712 B
PHP

<?php
namespace App\View\Components;
use Closure;
use Illuminate\Contracts\View\View;
use Illuminate\View\Component;
use Visus\Cuid2\Cuid2;
class Modal extends Component
{
/**
* Create a new component instance.
*/
public function __construct(
public string $modalId,
public string $modalTitle,
public string|null $modalBody = null,
public string|null $modalSubmit = null,
public bool $yesOrNo = false,
public string $action = 'delete'
) {
//
}
/**
* Get the view / contents that represent the component.
*/
public function render(): View|Closure|string
{
return view('components.modal');
}
}