towerops/lib/towerops_web/live/components/status_title_component.ex

13 lines
355 B
Elixir

defmodule ToweropsWeb.Live.Components.StatusTitleComponent do
@moduledoc """
LiveComponent that renders the browser-title status hook target.
"""
use ToweropsWeb, :live_component
def render(assigns) do
~H"""
<div id="status-title-watcher" phx-hook="StatusTitle" phx-target={@myself} style="display: none;">
</div>
"""
end
end