<% entities = [:button, :link] sizes = [:xl, :lg, :md, :sm, :xs].reverse styles = [:primary, :outline, :text] colors = [:primary, :blue, :gray, :red, :orange, :green] states = [:regular, :hover, :disabled, :active] %>
<% entities.each do |entity| %>

<%= entity.to_s.humanize.capitalize.pluralize %>

<% sizes.each do |size| %>
size: <%= size %>
<% 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 %>
<% end %> <% end %>
<% end %>
<% end %>