"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 && ( )}
); }