import { Search, X } from "lucide-react"; interface SearchInputProps { value: string; onChange: (value: string) => void; placeholder?: string; } export const SearchInput = ({ value, onChange, placeholder = "Поиск...", }: SearchInputProps) => { return (
onChange(e.target.value)} placeholder={placeholder} className="w-full pl-9 pr-8 py-2 border border-gray-300 rounded-md text-sm outline-none focus:border-blue-500 focus:ring-1 focus:ring-blue-500 bg-white" /> {value && ( )}
); };