import React, { InputHTMLAttributes, ChangeEvent } from 'react'; import Input from '../Input'; import styles from './InputField.module.css'; interface IInputFieldProps extends InputHTMLAttributes { label: string; className?: string; name: string; placeholder?: string; type: 'text' | 'password' | 'email' | 'number'; value: string; onChange: (e: ChangeEvent) => void; id?: string; } /** * @deprecated use TextField instead */ function InputField({ label, className, name, onChange, placeholder, type, value, id, }: IInputFieldProps) { return (
); } export default InputField;