defmodule Underthehood.TerminalButtonComponent do @moduledoc false use Phoenix.LiveComponent alias Phoenix.LiveView.JS import Underthehood, only: [terminal: 1] def update(assigns, socket) do terminal_id = "#{assigns.id}_terminal" {:ok, assign(socket, :terminal_id, terminal_id)} end def render(assigns) do ~H"""