*/ public array $confirmEventParams = []; public bool $danger = false; public function confirm(): void { if ($this->confirmEvent) { $this->dispatch($this->confirmEvent, ...$this->confirmEventParams); } $this->closeModal(); } public static function modalMaxWidth(): string { return 'sm'; } public function render(): View { return view('livewire.modals.confirm-action'); } }