import { Search, X } from "lucide-react"; import { Input } from "@/components/ui/input"; type SearchInputProps = { value: string; onChange: (value: string) => void; placeholder?: string; onClear?: () => void; }; /** Admin search field with a leading search icon and optional clear button. */ export function SearchInput({ value, onChange, placeholder, onClear, }: SearchInputProps) { return (
onChange(e.target.value)} className="pl-9 h-9" /> {value && onClear && ( )}
); }