% if comp leading_icon = comp.icons.select { |i| i.position.select { |p| eq(p, :left) }.any? }.first trailing_icon = comp.icons.select { |i| i.position.select { |p| eq(p, :right) }.any? }.first child_events = (leading_icon&.events || trailing_icon&.events || comp.text&.events || []).any? %> <% if comp.menu %>
<% end %> <%= partial "components/tooltip", :locals => {comp: comp.tooltip, parent_id: comp.id} if comp.tooltip %> <% end %>