<% if request.headers["HX-Request"] %>
  <%= render Components::PublicActivity::Container.new(@activities) %>
  <%= paginate @activities %>
<% else %>
  <div class="page-header">
    <h1>Activity Log</h1>
  </div>

  <div class="page-sections">
    <section class="section-card">
      <p>View your recent account activity and security events.</p>
      <%= render Components::PublicActivity::Container.new(@activities) %>
      <%= paginate @activities %>
    </section>
  </div>
<% end %>
