import { TextField } from '@material-ui/core'; import { INPUT_ERROR_TEXT } from '../../../testIds'; import { useStyles } from './Input.styles.ts'; interface IInputProps extends React.InputHTMLAttributes { label: string; error?: boolean; errorText?: string; style?: Object; className?: string; value: string; onChange: (e: any) => any; onFocus?: (e: any) => any; onBlur?: (e: any) => any; multiline?: boolean; rows?: number; } const Input = ({ label, placeholder, error, errorText, style, className, value, onChange, ...rest }: IInputProps) => { const styles = useStyles(); return (
); }; export default Input;