import IdentityRow from "../IdentityRow"; import type { HandleMatch } from "../../lib/bsky"; interface HandleSuggestionsProps { suggestions: HandleMatch[]; activeIndex: number; onSelect: (handle: string) => void; idPrefix: string; } export default function HandleSuggestions({ suggestions, activeIndex, onSelect, idPrefix, }: HandleSuggestionsProps) { return (
{suggestions.map((suggestion, index) => { const isActive = index === activeIndex; return ( ); })}
); }