Proyectos de Subversion LeadersLinked - SPA

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1459 stevensc 1
import React from 'react'
2
import { InputAdornment, InputLabel } from '@mui/material'
3
 
4
import InputBase from './InputBase'
5
 
6
const TextInput = ({
7
  label = '',
8
  inputRef = null,
9
  icon: Icon = null,
10
  ...rest
11
}) => {
12
  return (
13
    <>
14
      {label ? (
15
        <InputLabel shrink htmlFor={name}>
16
          {label}
17
        </InputLabel>
18
      ) : null}
19
 
20
      <InputBase
21
        ref={inputRef}
22
        startAdornment={
23
          Icon ? (
24
            <InputAdornment position='start'>
25
              <Icon />
26
            </InputAdornment>
27
          ) : null
28
        }
29
        fullWidth
30
        {...rest}
31
      />
32
    </>
33
  )
34
}
35
 
36
export default TextInput