import React from 'react';
import PropTypes from 'prop-types';
import { Input } from 'antd';
import { jsx as _jsx } from "react/jsx-runtime";
const str2arr = str => str.split('\n');
const arr2str = arr => arr.join('\n');
export default function MultiLineInputBox(props) {
  const {
    value = [],
    onChange = () => {}
  } = props;
  const handleChange = event => {
    onChange(str2arr(event.target.value));
  };
  return /*#__PURE__*/_jsx(Input.TextArea, {
    rows: 3,
    ...props,
    value: arr2str(value),
    onChange: handleChange
  });
}
MultiLineInputBox.propTypes = {
  value: PropTypes.arrayOf(PropTypes.string),
  onChange: PropTypes.func
};
MultiLineInputBox.defaultProps = {
  value: [],
  onChange: () => {}
};
//# sourceMappingURL=MultiLineInputBox.js.map