import PropTypes from 'prop-types'; import * as React from 'react'; import InputLabel from '@mui/material/InputLabel'; import OutlinedInput from '@mui/material/OutlinedInput'; import InputAdornment from '@mui/material/InputAdornment'; import FormControl from '@mui/material/FormControl'; import SearchIcon from '@mui/icons-material/Search'; import useFormatMessage from 'hooks/useFormatMessage'; export default function SearchInput({ onChange, defaultValue = '' }) { const formatMessage = useFormatMessage(); return ( {formatMessage('searchPlaceholder')} theme.palette.primary.main }} /> } label={formatMessage('searchPlaceholder')} /> ); } SearchInput.propTypes = { onChange: PropTypes.func, defaultValue: PropTypes.string, };