<% unless @error %>
<% if @previous_page %> <%= lookbook_render :icon_button, size: :lg, icon: :chevron_left, tooltip: "Previous page", href: lookbook_page_path(@previous_page.lookup_path), class: "pr-0.5 bg-transparent" %> <% else %> <%= lookbook_render :icon_button, size: :lg, icon: :chevron_left, disabled: true, class: "opacity-50 !cursor-default pr-0.5 bg-transparent" %> <% end %> <% if @next_page %> <%= lookbook_render :icon_button, size: :lg, icon: :chevron_right, tooltip: "Next page", href: lookbook_page_path(@next_page.lookup_path), class: "pl-0.5 bg-transparent" %> <% else %> <%= lookbook_render :icon_button, size: :lg, icon: :chevron_right, disabled: true, class: "opacity-50 !cursor-default pl-0.5 bg-transparent" %> <% end %>
<% end %>
<% if @page.header? %> <% end %> <%= lookbook_render :prose, size: :md, id: "page-content", markdown: false, class: "max-w-none flex-none min-h-[50vh]" do %> <%= @page_content %> <% end %> <% if @page.sections.any? %> <%= lookbook_render :page_tabs, id: "page-tabbed-sections", markdown: false, class: "mt-6" do |page_tabs| %> <% @page.sections.each do |section| %> <% page_tabs.with_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 %>