import clsx from 'clsx'; import { IconSearch } from '../Icons'; import { CProps } from '../props'; import Overlay from './Overlay'; import TextInput from './TextInput'; interface SearchBarProps extends CProps.Styling { value: string; noIcon?: boolean; id?: string; placeholder?: string; onChange?: (newValue: string) => void; noBorder?: boolean; } function SearchBar({ id, value, noIcon, onChange, noBorder, placeholder = 'Поиск', ...restProps }: SearchBarProps) { return (