import { TextField } from "@mui/material";
import { PropTypes } from "prop-types";

export const TextInput = (props) => {
  return (
    <TextField
      {...props}
      value={props.formik.values.mobile}
      onChange={props.formik.handleChange}
      helperText={props.formik.errors.mobile}
    />
  );
};

TextInput.propTypes = {
  formik: PropTypes.any,
};
