<%= content_for :main do %>
<% unless @error %>
<% if @previous_page %> <%= render_component :button, size: :lg, icon: :chevron_left, tooltip: "Previous page", href: lookbook_page_path(@previous_page.lookup_path), class: "pr-0.5 bg-transparent" %> <% else %> <%= render_component :button, size: :lg, icon: :chevron_left, disabled: true, class: "opacity-50 !cursor-default pr-0.5 bg-transparent" %> <% end %> <% if @next_page %> <%= render_component :button, size: :lg, icon: :chevron_right, tooltip: "Next page", href: lookbook_page_path(@next_page.lookup_path), class: "pl-0.5 bg-transparent" %> <% else %> <%= render_component :button, size: :lg, icon: :chevron_right, disabled: true, class: "opacity-50 !cursor-default pl-0.5 bg-transparent" %> <% end %>
<% end %> <%= yield %>
<% end %> <%= render template: "layouts/lookbook/application" %>