import { useCallback } from 'react' import type { ChangeEvent } from 'react' import { useTranslation } from 'react-i18next' import s from './index.module.css' import cn from '@/utils/classnames' type SearchInputProps = { value: string onChange: (v: string) => void } const SearchInput = ({ value, onChange, }: SearchInputProps) => { const { t } = useTranslation() const handleClear = useCallback(() => { onChange('') }, [onChange]) return (