module SimpleForm::Components::LabelInput

def deprecated_component(namespace, wrapper_options)

def deprecated_component(namespace, wrapper_options)
  method = method(namespace)
  if method.arity.zero?
    SimpleForm.deprecator.warn(SimpleForm::CUSTOM_INPUT_DEPRECATION_WARN % { name: namespace })
    method.call
  else
    method.call(wrapper_options)
  end
end