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