<%= link_to transfer.name,
transfer_path(transfer),
data: { turbo_frame: "drawer", turbo_prefetch: false },
class: "hover:underline hover:text-gray-800" %>
<% if transfer.status == "confirmed" %>
is confirmed">
<%= lucide_icon "link-2", class: "w-4 h-4 text-indigo-600" %>
<% else %>
Auto-matched
<%= button_to transfer_path(transfer, transfer: { status: "confirmed" }),
method: :patch,
class: "text-gray-500 hover:text-gray-800 flex items-center justify-center",
title: "Confirm match" do %>
<%= lucide_icon "check", class: "w-4 h-4 text-indigo-400 hover:text-indigo-600" %>
<% end %>
<%= button_to transfer_path(transfer, transfer: { status: "rejected" }),
method: :patch,
data: { turbo: false },
class: "text-gray-500 hover:text-gray-800 flex items-center justify-center",
title: "Reject match" do %>
<%= lucide_icon "x", class: "w-4 h-4 text-gray-400 hover:text-gray-600" %>
<% end %>
<% end %>
<%= link_to transfer.from_account.name, transfer.from_account, class: "hover:underline", data: { turbo_frame: "_top" } %>
<% if transfer.payment? %>
<%= lucide_icon "arrow-right", class: "w-4 h-4" %>
<% else %>
<%= lucide_icon "arrow-left-right", class: "w-4 h-4" %>
<% end %>
<%= link_to transfer.to_account.name, transfer.to_account, class: "hover:underline", data: { turbo_frame: "_top" } %>