import { MagnifyingGlassIcon } from "@radix-ui/react-icons"; import { Input } from "@/components/ui/input"; import { cn } from "@/util/utils"; import { ChangeEvent } from "react"; type TableSearchInputProps = { value: string; onChange: (value: string) => void; placeholder?: string; className?: string; inputClassName?: string; }; function TableSearchInput({ value, onChange, placeholder = "Search…", className, inputClassName, }: TableSearchInputProps) { function handleChange(event: ChangeEvent) { onChange(event.target.value); } return (
); } export { TableSearchInput };