diff --git a/vault/components/search-bar.tsx b/vault/components/search-bar.tsx new file mode 100644 index 0000000..5b9043e --- /dev/null +++ b/vault/components/search-bar.tsx @@ -0,0 +1,34 @@ +"use client"; + +import { Search, X } from "lucide-react"; +import { Input } from "@/components/ui/input"; +import { Button } from "@/components/ui/button"; + +interface SearchBarProps { + value: string; + onChange: (value: string) => void; +} + +export function SearchBar({ value, onChange }: SearchBarProps) { + return ( +
+ + onChange(e.target.value)} + className="pl-9 pr-9 h-10 bg-muted/50 border-border/50 focus:border-primary/50" + /> + {value && ( + + )} +
+ ); +}