import classNames from 'classnames' import { ChangeEvent, forwardRef } from 'react' import { Search } from 'components/Icons' interface Props { value: string placeholder: string autofocus?: boolean onChange: (value: string) => void } const SearchBar = (props: Props) => { function onChange(event: ChangeEvent) { props.onChange(event.target.value) } return (
onChange(event)} autoFocus={props.autofocus} />
) } export default forwardRef(SearchBar)