import { debounce } from 'lodash' import { SearchIcon } from 'lucide-react' import { useRef } from 'react' import { InputGroup, InputGroupAddon, InputGroupInput } from '@/components/ui/input-group' import { useKeyPress } from '@/hooks/use-keypress' import { cn } from '@/lib/utils' export function SearchForm({ placeholder, className, onChange, ...props }: { placeholder?: React.ReactNode className?: string onChange?: (e: React.ChangeEvent) => void } & React.HTMLAttributes) { const inputRef = useRef(null) useKeyPress('/', () => { inputRef.current?.focus() }) return ( {placeholder} ) }