import React from 'react';
import { Address } from '../Address';
import { Company } from '../Company';
import { Person } from '../Person';
export var Abode = function Abode(_ref) {
  var forname = _ref.forname,
      surname = _ref.surname,
      company = _ref.company,
      vat = _ref.vat,
      street = _ref.street,
      streetNo = _ref.streetNo,
      postcode = _ref.postcode,
      cities = _ref.cities,
      countries = _ref.countries,
      handleFieldChange = _ref.onFieldChange,
      handleValidFieldChange = _ref.onValidFieldChange;
  return React.createElement(React.Fragment, null, React.createElement(Person, {
    forname: forname,
    surname: surname,
    onFieldChange: handleFieldChange,
    onFieldValidChange: handleValidFieldChange
  }), vat && company ? React.createElement(Company, {
    company: company,
    vat: vat,
    onFieldChange: handleFieldChange,
    onValidFieldChange: handleValidFieldChange
  }) : null, React.createElement(Address, {
    street: street,
    streetNo: streetNo,
    postcode: postcode,
    cities: cities,
    countries: countries,
    onFieldChange: handleFieldChange,
    onValidFieldChange: handleValidFieldChange
  }));
};