import { BiSearchAlt2 } from 'react-icons/bi'; import { CProps } from '../props'; import Overlay from './Overlay'; import TextInput from './TextInput'; interface SearchBarProps extends CProps.Styling { value: string; onChange?: (newValue: string) => void; noBorder?: boolean; } function SearchBar({ value, onChange, noBorder, ...restProps }: SearchBarProps) { return (
(onChange ? onChange(event.target.value) : undefined)} />
); } export default SearchBar;