"use client";
import styles from "./styles.module.css";
const TextField = ({ placeHolder, hasError, ...props }) => {
  return (
    <input
      className={`${styles.input} ${hasError ? styles.error : null}`}
      type="text"
      pattern="[a-z]*"
      placeholder={placeHolder}
      {...props}
    />
  );
};

export default TextField;
