defmodule ChirpWeb.PostLive.PostComponent do
use ChirpWeb, :live_component
@spec render(any) :: Phoenix.LiveView.Rendered.t()
def render(assigns) do
~H"""
<%= @post.username %>
<%= @post.body %>
<.link navigate={~p"/posts/#{@post}"} class="inline-flex items-center text-blue-600 hover:underline">
Show