1 # frozen_string_literal: true
 
   3 module PaginationHelper
 
   4   def pagination_item(params, title, &)
 
   5     link_class = "page-link icon-link text-center"
 
   6     page_link_content = capture(&)
 
   8       page_link = link_to page_link_content,
 
  12                           :data => { "turbo" => true, "turbo-frame" => "pagination", "turbo-action" => "advance" }
 
  13       tag.li page_link, :class => "page-item d-flex"
 
  15       page_link = tag.span page_link_content,
 
  17       tag.li page_link, :class => "page-item d-flex disabled"