%= render PandaCms::Admin::ContainerComponent.new do |component| %>
<% component.with_heading(text: "Posts", level: 1) do |heading| %>
<% end %>
<%= render PandaCms::Admin::TableComponent.new(rows: posts) do |table| %>
<% table.column("Title") do |post| %>
<%= link_to post.title, edit_admin_post_path(post), class: "block h-full w-full" %>
<%= post.path %>
<% end %>
<% table.column("Status") { |post| render PandaCms::Admin::TagComponent.new(status: post.status) } %>
<% table.column("Last Updated") { |post| render PandaCms::Admin::UserActivityComponent.new(whodunnit_to: post)} %>
<% end %>
<% end %>