Rev 718 | AutorÃa | Ultima modificación | Ver Log |
import React from 'react'
import { useSelector } from 'react-redux'
import SearchIcon from '@mui/icons-material/Search'
import Input from './Input'
const SearchBar = ({ onChange = () => null }) => {
const labels = useSelector(({ intl }) => intl.labels)
return (
<Input
placeholder={labels.search}
onChange={(e) => onChange(e.target.value)}
icon={SearchIcon}
/>
)
}
export default SearchBar