[
{ page: :index, slot: :toolbar_center, name: :view_switcher, partial: "lcp_ruby/slots/index/view_switcher", position: 10 },
{ page: :index, slot: :toolbar_end, name: :manage_all, partial: "lcp_ruby/slots/index/manage_all", position: 5 },
{ page: :index, slot: :toolbar_end, name: :collection_actions, partial: "lcp_ruby/slots/index/collection_actions", position: 10 },
{ page: :index, slot: :filter_bar, name: :search, partial: "lcp_ruby/slots/index/search", position: 10 },
{ page: :index, slot: :filter_bar, name: :predefined_filters, partial: "lcp_ruby/slots/index/predefined_filters", position: 20 },
{ page: :index, slot: :filter_bar, name: :saved_filters, partial: "lcp_ruby/slots/index/saved_filters", position: 25,
enabled: ->(ctx) { SavedFilters::Registry.available? && ctx.presenter.saved_filters_enabled? } },
{ page: :index, slot: :filter_bar, name: :sort_dropdown, partial: "lcp_ruby/slots/index/sort_dropdown", position: 5,
enabled: ->(ctx) { ctx.presenter.tiles? || ctx.presenter.sort_fields.any? } },
{ page: :index, slot: :filter_bar, name: :advanced_filter, partial: "lcp_ruby/slots/index/advanced_filter", position: 30 },
{ page: :index, slot: :below_content, name: :summary_bar, partial: "lcp_ruby/slots/index/summary_bar", position: 3,
enabled: ->(ctx) { ctx.presenter.summary_enabled? } },
{ page: :index, slot: :below_content, name: :pagination_footer, partial: "lcp_ruby/slots/index/pagination_footer", position: 10 },
{ page: :show, slot: :toolbar_start, name: :view_switcher, partial: "lcp_ruby/slots/show/view_switcher", position: 10 },
{ page: :show, slot: :toolbar_start, name: :back_to_list, partial: "lcp_ruby/slots/show/back_to_list", position: 20,
enabled: ->(ctx) { ctx.action_set&.permission_evaluator&.can?("index") } },
{ page: :show, slot: :toolbar_end, name: :copy_url, partial: "lcp_ruby/slots/show/copy_url", position: 10 },
{ page: :show, slot: :toolbar_end, name: :single_actions, partial: "lcp_ruby/slots/show/single_actions", position: 20 }
].freeze