summaryrefslogblamecommitdiff
path: root/lib/lsg_web/components/message_component.ex
blob: 59977548fe54b11752f626d0632b5862dc37bf1b (plain) (tree)
1
2
3
4
5
6
7




                                    

                                                                                                  




                                                                         
defmodule LSGWeb.MessageComponent do
  use Phoenix.Component

  def content(assigns) do
    ~H"""
    <LSGWeb.Component.naive_date_time_utc datetime={@message.at} format="time-24-with-seconds" />
    <div class="inline-block font-bold flex-none cursor-default"><%= @message.sender.nick %></div>
    <div class="inline-block flex-grow cursor-default"><%= @text %></div>
    """
  end

end