defmodule LivebookWeb.TeamsComponents do use Phoenix.Component alias LivebookWeb.LayoutHelpers @doc """ Renders the teams header with the badges. """ attr :hub, Livebook.Hubs.Team, required: true attr :hub_metadata, Livebook.Hubs.Metadata, required: true attr :default?, :boolean, required: true def header(assigns) do ~H"""
<%= @hub.hub_emoji %>
<%= @hub.hub_name %> Livebook Teams <%= if @default? do %> Default <% end %>
""" end end