import _extends from "@babel/runtime-corejs3/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime-corejs3/helpers/objectWithoutPropertiesLoose";
import React from 'react';
import { TextField as MuiTextField } from '@material-ui/core';

const TextField = (_ref) => {
  let {
    onChange
  } = _ref,
      otherProps = _objectWithoutPropertiesLoose(_ref, ["onChange"]);

  const handleChange = event => onChange && onChange(event.target.value);

  return /*#__PURE__*/React.createElement(MuiTextField, _extends({
    fullWidth: true,
    variant: "outlined",
    margin: "normal",
    InputLabelProps: {
      shrink: true
    },
    onChange: handleChange
  }, otherProps));
};

export default TextField;
//# sourceMappingURL=TextField.js.map