<% unless @error %>
<% if @previous_page %>
<%= render_component :button,
size: :lg,
icon: :chevron_left,
tooltip: "Previous page",
href: 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: 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 %>