"use client"; import type { SearchBarProps } from "./Search.types"; export default function SearchBar({ value, onChange, onClear, placeholder = "Search...", className = "", }: SearchBarProps) { return (
onChange(e.target.value)} placeholder={placeholder} aria-label="Search items" className="bg-card text-foreground border-border placeholder:text-muted-foreground focus:border-primary focus:ring-primary focus:ring-opacity-20 w-full rounded-xl border py-2 pr-9 pl-9 text-sm transition-all duration-150 outline-none focus:ring-2" /> {value && ( )}
); }