import { Search } from 'lucide-react'; import type { ReactNode } from 'react'; import { Input } from './Input'; interface SearchBarProps { value: string; onChange: (value: string) => void; placeholder: string; onSubmit?: () => void; actions?: ReactNode; } export function SearchBar({ value, onChange, placeholder, onSubmit, actions, }: SearchBarProps) { return (
onChange(e.target.value)} onKeyDown={(e) => { if (e.key === 'Enter') onSubmit?.(); }} icon={} />
{actions &&
{actions}
}
); }