import { MapPin, Store } from 'lucide-react';
import { cn } from '@/lib/utils';
import type { SearchSuggestion } from '@/lib/mapSearchSuggestions';
interface MapSearchSuggestionsProps {
suggestions: SearchSuggestion[];
activeIndex: number;
spotsLabel: string;
placesLabel: string;
emptyLabel: string;
onHover: (index: number) => void;
onSelect: (suggestion: SearchSuggestion) => void;
}
/**
* Dropdown panel for the map search bar. Purely presentational: the parent owns
* the suggestion list (see `buildSearchSuggestions` in
* `@/lib/mapSearchSuggestions`), the active index and selection.
*/
export function MapSearchSuggestions({
suggestions,
activeIndex,
spotsLabel,
placesLabel,
emptyLabel,
onHover,
onSelect,
}: MapSearchSuggestionsProps) {
return (