Rev 1459 | AutorÃa | Ultima modificación | Ver Log |
import React from 'react'import { InputAdornment, TextField } from '@mui/material'const Input = ({label = '',inputRef = null,icon: Icon = null,error = null,name = '',onChange = () => {},value = '',type = 'text',accept = ''}) => {return (<TextFieldlabel={label}helperText={error}error={Boolean(error)}ref={inputRef}id={name}name={name}fullWidthonChange={onChange}value={value}InputProps={{startAdornment: Icon ? (<InputAdornment position='start'><Icon /></InputAdornment>) : null,accept}}type={type}/>)}export default Input