<% content_for :header do %> <%= render Koi::Header::IndexComponent.new(model: Admin::User) do |component| %> <% component.with_action "New", new_admin_admin_user_path %> <% component.with_action "Archived", archived_admin_admin_users_path %> <% end %> <% end %> <%= table_query_with(collection:) %> <%= table_selection_with(collection:) do %> <%= tag.button "Archive", formaction: archive_admin_admin_users_path, formmethod: :put %> <% end %> <%= table_with(collection:) do |row| %> <% row.select %> <% row.link :name, url: :admin_admin_user_path %> <% row.text :email %> <% end %> <%= table_pagination_with(collection:) %>