defmodule MoonWeb.Examples.Parts.ModalExample.Alert do @moduledoc false use Moon.StatefulComponent use MoonWeb, :example alias Moon.Parts.{Button, Modal} alias Moon.Parts.Button.ButtonsBlock def render(assigns) do ~F"""

Are you sure you want to add the “Speech to Text” service to the node=test app?

Cancel
""" end def handle_event("set_open", _, socket) do Modal.open("alert_modal") {:noreply, socket} end def handle_event("set_close", _, socket) do Modal.close("alert_modal") {:noreply, socket} end def code() do """ """ end end