<% styles.each do |style| %>
<% colors.each do |color| %>
<% next if style == :primary && color != :primary %>
<% states.each do |state| %>
<%
extra_classes = ""
case state
when :active
extra_classes += " active"
when :hover
extra_classes += " hover"
end
%>
<%
a_button_or_link = "a_#{entity}"
args = {icon: "heroicons/outline/arrow-left", style: style, color: color, size: size, class: extra_classes, disabled: state == :disabled}
%>
<% if entity == :link %>
<%= send a_button_or_link, '/admin/avo_private/design', **args do %>
<%= entity.to_s.humanize.capitalize %> <%= state %>
<% end %>
<% else %>
<%= send a_button_or_link, **args do %>
<%= entity.to_s.humanize.capitalize %> <%= state %>
<% end %>
<%= a_button icon: "avo/bell", style: style, color: color, size: size, class: extra_classes, disabled: state == :disabled %>
<% end %>
<% end %>