import { Search, X } from 'lucide-react'; import { IconButton } from '../../components/ui'; export function TreeSearchField({ value, onChange, resultCount, placeholder = '搜索…', label = '搜索树', }: { value: string; onChange: (value: string) => void; resultCount?: number; placeholder?: string; label?: string; }) { return (
{value && resultCount !== undefined && (

找到 {resultCount} 个匹配项

)}
); }