module CmAdmin::ViewHelpers::PageInfoHelper

def custom_modal_button(custom_action)

def custom_modal_button(custom_action)
  link_to '', class: 'btn-secondary ms-2', data: { bs_toggle: "modal", bs_target: "##{custom_action.name.classify}Modal-#{@ar_object.id}" } do
    concat(content_tag(:span) do
      tag.i class: custom_action.icon_name
    end)
    concat content_tag(:span, custom_action_title(custom_action))
  end
end