import React from 'react';
import PropTypes from 'prop-types';
import TextAreaFormFieldValue from './TextAreaFormFieldValue';
import { jsx as _jsx } from "react/jsx-runtime";
import { jsxs as _jsxs } from "react/jsx-runtime";
export default function TextAreaFormField(props) {
  const {
    label,
    value,
    onChange
  } = props;
  return /*#__PURE__*/_jsxs("div", {
    className: "dbm-form-field dbm-string-form-field",
    children: [/*#__PURE__*/_jsx("b", {
      children: label
    }), ":", ' ', /*#__PURE__*/_jsx(TextAreaFormFieldValue, {
      value: value,
      onChange: onChange,
      ...props
    })]
  });
}
TextAreaFormField.propTypes = {
  label: PropTypes.string.isRequired,
  value: PropTypes.string,
  onChange: PropTypes.func
};
TextAreaFormField.defaultProps = {
  value: '',
  onChange: () => {}
};
//# sourceMappingURL=TextAreaFormField.js.map