">
"
class="
flex gap-3 items-center
py-1 px-3 rounded
hover:text-red-500 hover:bg-gray-50
<%= "text-red-600 bg-gray-50" if active? %>
<%= @item.top_level ? "font-semibold text-sm text-black" : "font-normal text-sm text-gray-600" %>
"
>
<% if @item.icon %>
<%= icon_tag(@item.icon, class: "inline-block w-full h-full fill-current") %>
<% end %>
<%= @item.name %>
<% if @item.children? %>
">
<%= render self.class.with_collection(@item.children, fullpath: @fullpath) %>
<% end %>