class Primer::Alpha::ActionList::FormWrapper

def initialize(list:, action: nil, **form_arguments)

def initialize(list:, action: nil, **form_arguments)
  @list = list
  @form_arguments = form_arguments
  @action = action
  @http_method = extract_http_method(@form_arguments)
  name = @form_arguments.delete(:name)
  value = @form_arguments.delete(:value) || name
  inputs = @form_arguments.delete(:inputs) || []
  # For the older version of this component that only allowed you to
  # specify a single input
  if inputs.empty?
    inputs << {
      name: name,
      value: value,
      **(@form_arguments.delete(:input_arguments) || {})
    }
  end
  @inputs = inputs.map do |input_data|
    input_data = input_data.dup
    input_data[:type] ||= :hidden
    input_data[:data] ||= {}
    input_data[:data][:list_item_input] = true
    input_data
  end
end