%# locals: (type:, label:, icon_name: nil, icon_bg_class: nil, icon_text_class: nil, enabled:, disabled_message: nil, button_class: "flex items-center justify-between p-4 group cursor-pointer w-full", image: nil) %>
<% if enabled %>
<%= button_to imports_path(import: { type: type }), class: button_class, data: { turbo: false } do %>
<% if image %>
<%= image_tag(image, alt: "#{label} logo", class: "w-8 h-8 rounded-md") %>
<% else %>
<%= icon(icon_name, color: "current") %>
<% end %>
<%= label %>
<%= icon("chevron-right") %>
<% end %>
<% else %>
<% if image %>
<%= image_tag(image, alt: "#{label} logo", class: "w-8 h-8 rounded-md") %>
<% else %>
<%= icon(icon_name, color: "current") %>
<% end %>
<%= label %>
<%= disabled_message %>
<%= icon("lock", size: "sm", class: "text-secondary") %>
<% end %>
<%= render "shared/ruler" %>