%= render component_tag(x: {data: "appSidebarNav"}) do %>
<% if actions? %>
<%= render Coco::App::SidebarNav::Item.new(label: "Add") do |item| %>
<% item.with_icon do %>
<%= coco_icon :plus, size: :full %>
<% end %>
<% item.with_menu do %>
<%= coco_sidebar_nav_menu(class: "nav-card-menu") do |menu| %>
<% actions_data.each do |action| %>
<% menu.with_block_link(action[:href], **action.except(:href, :icon, :label, :description)) do %>
<%= coco_icon(action[:icon], size: :md) %>
<%= action[:label] %>
<%= raw action[:description] %>
<% end %>
<% end %>
<% end %>
<% end %>
<% end %>
<% end %>
<%= safe_join(items) %>
<% end %>