import { Search } from 'lucide-react' import { useTranslation } from 'react-i18next' import { cn } from '@/lib/utils' interface TableSearchInputProps { value: string onChange: (value: string) => void placeholder?: string className?: string } export function TableSearchInput({ value, onChange, placeholder, className, }: TableSearchInputProps) { const { t } = useTranslation() return (
onChange(e.target.value)} placeholder={placeholder ?? t('table.search', 'Search...')} className={cn( 'h-9 w-64 rounded-md border border-border bg-background pl-9 pr-3', 'text-sm text-foreground placeholder:text-muted-foreground', 'focus:outline-none focus:ring-2 focus:ring-ring focus:border-transparent', 'transition-colors' )} />
) }