<%= render component_tag(x: slider? ? { data: "appPlanPicker", ":class": "{'slider-active': shouldPaginate}", "options": "options", "@resize.window": "calculateOffset" } : {}) do %>
<% if currency_selector? %>
<%= currency_selector %>
<% end %>
<%= interval_selector %>
<% if view_toggle? %>
<%= view_toggle %>
<% end %>
<%= space 4 %>
>
<% plans.each do |plan| %>
<%= plan %>
<% end %>
<% if slider? %>
<%= coco_button( icon: :arrow_left, theme: :secondary, floating: true, size: :lg, x: { ref: "previous", "@click": "previous", "effect": "disabled = isFirst" }) %> <%= coco_button( icon: :arrow_right, theme: :secondary, floating: true, size: :lg, x: { ref: "next", "@click": "next", "effect": "disabled = isLast" }) %>
<% end %>
<% if view_toggle? %>
<%= space 4 %> <%= view_toggle %>
<% end %>
<% end %>