"use strict";

var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");

var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");

_Object$defineProperty(exports, "__esModule", {
  value: true
});

exports.default = void 0;

var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/extends"));

var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/objectWithoutProperties"));

var _react = _interopRequireDefault(require("react"));

var _core = require("@material-ui/core");

var TextField = function TextField(_ref) {
  var onChange = _ref.onChange,
      otherProps = (0, _objectWithoutProperties2.default)(_ref, ["onChange"]);

  var handleChange = function handleChange(event) {
    return onChange && onChange(event.target.value);
  };

  return /*#__PURE__*/_react.default.createElement(_core.TextField, (0, _extends2.default)({
    fullWidth: true,
    variant: "outlined",
    margin: "normal",
    InputLabelProps: {
      shrink: true
    },
    onChange: handleChange
  }, otherProps));
};

var _default = TextField;
exports.default = _default;
//# sourceMappingURL=TextField.js.map