app/views/organization_transactions/index.html.erb
<%= render(PageComponent.new(subject: @organization, tabs: TabsComponent.new(tabs: organization_tabs(@organization)), sidebar: true)) do |component| %>
<% component.with(:header) do %>
<%= render(Page::HeaderComponent.new(title: @organization.name, sidebar: true, buttons: [
layout_button(link: new_organization_transaction_path(@organization), icon: "fas fa-plus", title: "Add transaction", admin: true),
layout_button(link: organization_transactions_path(@organization, format: :csv), icon: "fas fa-download", title: "Export to CSV"),
])) %>
<% end %>
<% component.with(:body) do %>
<%= render CardComponent.new do %>
<%= render "/organization_transactions/table", organization: @organization, organization_transactions: @organization_transactions, pagy: @pagy %>
<% end %>
<% end %>
<% end %>