import React from 'react'; // The matches for what has been typed after an @ in the post editor, grouped // (Crops, Members, Yours) and floating under the cursor. The editor owns which // is highlighted and handles the keys; this only draws the list. export default function LinkSuggestionList({items, selected, rect, onChoose}) { if (!rect || items.length === 0) return null; let lastGroup = null; return (