<% content_for :title, t(".title") %> <%= render DS::Dialog.new do |dialog| %> <% dialog.with_header(title: t(".title")) do %>
<%= icon "bitcoin", class: "text-primary" %> <%= t(".subtitle") %>
<% end %> <% dialog.with_body do %> <%= form_with url: complete_account_setup_coinbase_item_path(@coinbase_item), method: :post, local: true, id: "coinbase-setup-form", data: { controller: "loading-button", action: "submit->loading-button#showLoading", loading_button_loading_text_value: t(".creating"), turbo_frame: "_top" }, class: "space-y-6" do |form| %>
<%= icon "info", size: "sm", class: "text-primary mt-0.5 flex-shrink-0" %>

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

<% if @coinbase_accounts.empty? %>

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

<% else %>
<%= t(".accounts_count", count: @coinbase_accounts.count) %>
<% @coinbase_accounts.each do |coinbase_account| %> <% end %>
<% end %>
<%= render DS::Button.new( text: t(".import_selected"), variant: "primary", icon: "plus", type: "submit", class: "flex-1", data: { loading_button_target: "button" } ) %> <%= render DS::Link.new( text: t(".cancel"), variant: "secondary", href: accounts_path ) %>
<% end %> <% end %> <% end %>