import TextField from '@mui/material/TextField'; import { row } from '@wisemapping/mindplot/src/components/widget/ColorPaletteHtml'; import React, { ChangeEvent } from 'react'; import { ErrorInfo } from '../../../classes/client'; type InputProps = { name: string; error?: ErrorInfo; onChange?: (event: ChangeEvent) => void; label: string; required?: boolean; type: string; value?: string; autoComplete?: string; fullWidth?: boolean; disabled?: boolean; maxLength?: number, rows?: number }; const Input = ({ name, error, onChange, required = true, type, value, label, autoComplete, fullWidth = true, disabled = false, maxLength = 254, }: InputProps): React.ReactElement => { const fieldError = error?.fields?.[name]; return ( ); }; export default Input;