import React from "react";
import PropTypes from "prop-types";
import MaterialTextField from "@material-ui/core/TextField";

var TextField = function TextField(_ref) {
  var id = _ref.id,
      name = _ref.name,
      label = _ref.label,
      type = _ref.type,
      helperText = _ref.helperText,
      error = _ref.error,
      value = _ref.value,
      onChange = _ref.onChange,
      onBlur = _ref.onBlur,
      isRequired = _ref.isRequired;
  return React.createElement(MaterialTextField, {
    required: isRequired,
    id: id,
    name: name,
    label: label,
    type: type,
    helperText: helperText,
    error: error,
    value: value,
    onChange: onChange,
    onBlur: onBlur,
    fullWidth: true
  });
};

TextField.propTypes = {
  id: PropTypes.string,
  isRequired: PropTypes.bool,
  name: PropTypes.string,
  label: PropTypes.string,
  type: PropTypes.string,
  helperText: PropTypes.string,
  error: PropTypes.bool,
  value: PropTypes.string,
  onChange: PropTypes.func,
  onBlur: PropTypes.func
};
export default TextField;