<%= link_to(
    url,
    target: "_blank noopener noreferrer nofollow",
    class:
      "hover:underline text-slate-200 bg-slate-800 hover:text-slate-100 hover:bg-slate-700 border-slate-500 border rounded-md px-1 whitespace-nowrap inline-flex items-center gap-1 align-top",
) do %>
  <% if local_assigns[:icon_path] %>
    <%= image_tag local_assigns[:icon_path], class: "w-4 h-4 inline-block rounded-sm" %>
  <% end %>
  <span><%= title %></span>
<% end %>
