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