deleteUser($deletedUser); } $this->dispatch('user-deleted'); $this->dispatch('notify', message: $deletedUser->name . ' Usuário excluído com sucesso!'); } catch (Exception $e) { $this->dispatch('user-delete-error'); $this->dispatch('notify', message: $e->getMessage()); } } public function render() { return '
'; } }