<% if Avo::App.license.has_with_trial(:menu_editor) && Avo.configuration.profile_menu.present? %>
<% Avo::App.profile_menu.items.each do |item| %>
<% if item.is_a? Avo::Menu::Link %>
<%= render Avo::ProfileItemComponent.new label: item.name, path: item.path, icon: item.icon %>
<% end %>
<% end %>
<% end %>
<%# Example link below %>
<%#= render Avo::ProfileItemComponent.new label: 'Profile', path: '/profile', icon: 'user-circle' %>
<%= button_to helpers.main_app.send(destroy_user_session_path),
method: :delete,
form: { "data-turbo" => "false" },
class: "flex-1 flex items-center justify-center bg-white text-left cursor-pointer text-red-600 font-semibold hover:bg-red-100 block px-4 py-1 w-full py-3 text-center rounded w-full",
form_class: 'flex-1' do %>
<%= helpers.svg 'logout', class: 'h-4 mr-1' %> <%= t('avo.sign_out') %>
<% end %>