<% return unless post.respond_to?(:pools) %>
<% pools = post.pools %>
<% return if pools.empty? %>
<section class="sky-section">
  <div class="section-header">Post Pools</div>
  <div class="grid grid-cols-[1fr] divide-y divide-slate-300 bg-slate-100">
    <% pools.each do |pool| %>
      <div class="flex items-center justify-between px-4 py-2">
        <%= link_to pool.name,
                    domain_post_group_posts_path(pool),
                    class: "text-blue-600 hover:underline" %>
        <span class="text-slate-600"><%= pool.posts.count %> posts</span>
      </div>
    <% end %>
  </div>
</section>
