<%= t(".accounts") %>

<%= render LinkComponent.new( text: "New account", href: new_account_path(return_to: accounts_path), variant: "primary", icon: "plus", frame: :modal ) %>
<% if @manual_accounts.empty? && @plaid_items.empty? %> <%= render "empty" %> <% else %>
<% if @plaid_items.any? %> <%= render @plaid_items.sort_by(&:created_at) %> <% end %> <% if @manual_accounts.any? %> <%= render "accounts/index/manual_accounts", accounts: @manual_accounts %> <% end %>
<% end %>