module.exports = () => {
  return {
    buttonText: 'Continue',
    children: [
      {
        macroName: 'MultipleChoiceField',
        label: 'Address',
        name: 'uk_or_overseas',
        type: 'radio',
        options: [
          { value: 'uk', label: 'UK address' },
          { value: 'overseas', label: 'Overseas address' },
        ],
      },
    ],
  }
}

module.exports = ({
  errors = {},
}) => {
  return {
    buttonText: 'Continue',
    children: [
      {
        macroName: 'MultipleChoiceField',
        label: 'Address',
        name: 'uk_or_overseas',
        type: 'radio',
        options: [
          { value: 'uk', label: 'UK address' },
          { value: 'overseas', label: 'Overseas address' },
        ],
        validations: [
          {
            type: 'required',
            message: 'Select an address type',
          },
        ],
        error: errors.uk_or_overseas,
      },
    ],
  }
}

Integrate validations with address step 1 form
Integrate validations with address step 1 form
