defmodule Underthehood.TerminalButtonComponent do @moduledoc false use Phoenix.LiveComponent alias Phoenix.LiveView.JS import Underthehood, only: [terminal: 1] def render(%{id: id} = assigns) do toggle_terminal = JS.toggle(to: "##{id} .terminal_toggle_button") |> JS.toggle(to: "##{id} .terminal_container") terminal_id = "#{id}_terminal" ~H"""
iex>
""" end end