defmodule Phoenix.LiveDashboard.ModalComponent do use Phoenix.LiveDashboard.Web, :live_component def render(assigns) do ~L""" """ end def handle_event("close", _, socket) do {:noreply, push_patch(socket, to: socket.assigns.return_to)} end end