<%= link_to import_path(import), class: "text-sm text-gray-900 hover:underline" do %>
<%= t(".label", type: import.type.titleize, datetime: import.updated_at.strftime("%b %-d, %Y at %l:%M %p")) %>
<% end %>
<% if import.pending? %>
<%= t(".in_progress") %>
<% elsif import.importing? %>
<%= t(".uploading") %>
<% elsif import.failed? %>
<%= t(".failed") %>
<% elsif import.complete? %>
<%= t(".complete") %>
<% end %>
<%= contextual_menu do %>
<%= link_to import_path(import),
class: "block w-full py-2 px-3 space-x-2 text-gray-900 hover:bg-gray-50 flex items-center rounded-lg" do %>
<%= lucide_icon "eye", class: "w-5 h-5 text-gray-500" %>
<%= t(".view") %>
<% end %>
<% unless import.complete? %>
<%= button_to import_path(import),
method: :delete,
class: "block w-full py-2 px-3 space-x-2 text-red-600 hover:bg-red-50 flex items-center rounded-lg",
data: { turbo_confirm: true } do %>
<%= lucide_icon "trash-2", class: "w-5 h-5" %>
<%= t(".delete") %>
<% end %>
<% end %>
<% end %>