import React from 'react';
import { Text } from '../Input';
export var Company = function Company(_ref) {
  var company = _ref.company,
      vat = _ref.vat,
      handleFieldChange = _ref.onFieldChange,
      handleValidFieldChange = _ref.onValidFieldChange;
  return React.createElement("fieldset", {
    name: "company"
  }, React.createElement("div", {
    className: "form-row"
  }, React.createElement("div", {
    className: "col-6 mb-3"
  }, React.createElement(Text, {
    label: company.label,
    id: company.id,
    value: company.value,
    onChange: handleFieldChange('company'),
    placeholder: company.placeholder,
    onValidChange: handleValidFieldChange('company'),
    messages: company.messages
  })), React.createElement("div", {
    className: "col-6 mb-3"
  }, React.createElement(Text, {
    label: vat.label,
    id: vat.id,
    value: vat.value,
    onChange: handleFieldChange('vat'),
    placeholder: vat.placeholder,
    onValidChange: handleValidFieldChange('vat'),
    messages: vat.messages
  }))));
};