import _Input from "@alifd/next/es/input";
import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
var _excluded = ["row", "title", "style", "value", "InputLength", "placeholder", "autoHeight", "defaultValue"];
import * as React from 'react';
var CommonTextarea = function CommonTextarea(_ref) {
  var row = _ref.row,
    title = _ref.title,
    _ref$style = _ref.style,
    style = _ref$style === void 0 ? {} : _ref$style,
    value = _ref.value,
    InputLength = _ref.InputLength,
    placeholder = _ref.placeholder,
    autoHeight = _ref.autoHeight,
    defaultValue = _ref.defaultValue,
    otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
  React.useEffect(function () {
    console.log(defaultValue);
  }, [defaultValue]);
  var _otherProps = otherProps || {};
  return /*#__PURE__*/React.createElement(_Input.TextArea, _extends({
    defaultValue: defaultValue,
    rows: row,
    autoHeight: autoHeight,
    placeholder: placeholder,
    maxLength: InputLength
  }, _otherProps));
};
export default CommonTextarea;