import { SearchIcon, XIcon } from 'lucide-react' import { cn } from '../lib/cn' export type TableSearchInputProps = { /** Current query text. */ value: string /** Notified on every keystroke and when the clear button empties the field. */ onChange: (value: string) => void /** Placeholder text. Defaults to "Search…". */ placeholder?: string className?: string } /** * The global-search text field: a search icon, an input themed to match the * toolbar controls, and an "x" clear affordance that appears once there's a * query. Used by the single-table toolbar and the `Table.Search` primitive. */ export function TableSearchInput({ value, onChange, placeholder = 'Search…', className, }: TableSearchInputProps) { return (