interface Props { suggestions: string[]; onSelect: (value: string) => void; } export default function SuggestionList({ suggestions, onSelect }: Props) { if (!suggestions.length) return null; return ( ); }