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';
3465 stevensc 2
import { useSelector } from 'react-redux';
3459 stevensc 3
import { Search } from '@mui/icons-material';
4
 
5
import { Input } from './inputs';
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
    />
18
  );
19
}