module ViewComponent::UseHelpers

def full_helper_method_name(helper_method, prefix: false, source: nil)

def full_helper_method_name(helper_method, prefix: false, source: nil)
  return helper_method unless prefix.present?
  if !!prefix == prefix
    "#{source.to_s.underscore}_#{helper_method}"
  else
    "#{prefix}_#{helper_method}"
  end
end