Proyectos de Subversion LeadersLinked - SPA

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
3459 stevensc 1
import React from 'react';
2
import { Search } from '@mui/icons-material';
3
 
4
import { Input } from './inputs';
5
import { useSelector } from 'react-redux';
6
 
7
export function SearchBar({ onChange = () => {}, color = 'secondary' }) {
8
  const labels = useSelector(({ intl }) => intl.labels);
9
 
10
  return (
11
    <Input
12
      icon={<Search />}
13
      onChange={(e) => onChange(e.target.value)}
14
      placeholder={labels.search}
15
      variant='search'
16
      color={color}
17
      sx={{ mb: 2 }}
18
    />
19
  );
20
}