<% if @page.header? %>

<%= @page.title %>

<% end %> <%= render_component :prose, markdown: false, class: "max-w-none flex-none" do %> <%= @page_content %> <% end %> <% if @page.sections.any? %> <%= render_component :page_tabs, markdown: false do |page_tabs| %> <% @page.sections.each do |section| %> <% page_tabs.tab name: "page-section-#{section.name}", label: section.label do %> <%= page_controller.render_page(section) %> <% end %> <% end %> <% end %> <% end %> <% if @page.footer? && @pages.many? %> <% end %>