% if style == :tabs %>
<% else %>
<% visible_items.each do |tab| %>
<%= a_link tab_path(tab),
color: selected?(tab) ? :primary : :gray,
style: selected?(tab) ? :outline : :text,
size: :sm,
class: selected?(tab) ? "z-20" : "",
title: tab.description,
data: {
tippy: tab.description.present? ? 'tooltip' : '',
selected: selected?(tab),
action: 'click->tabs#changeTab',
tabs_id_param: tab.name
} do %>
<%= tab.name %>
<% end %>
<% end %>
<% end %>