<% items = rendered_examples.filter { |example| example[:notes].present? } %> <% if items.many? %>
<% items.each do |item| %>
# <%= item[:label] %>
<%= render_component :prose, content: item[:notes] %>
<% end %>
<% else %>
<%= render_component :prose do %> <%== items.any? ? items.first[:notes] : "No notes provided." %> <% end %>
<% end %>