AutorÃa | Ultima modificación | Ver Log |
import React from 'react';
import { Search } from '@mui/icons-material';
import { Input } from './inputs';
import { useSelector } from 'react-redux';
export function SearchBar({ onChange = () => {}, color = 'secondary' }) {
const labels = useSelector(({ intl }) => intl.labels);
return (
<Input
icon={<Search />}
onChange={(e) => onChange(e.target.value)}
placeholder={labels.search}
variant='search'
color={color}
sx={{ mb: 2 }}
/>
);
}