import * as React from "react"; import type { ChatSuggestionProp } from "../../props/components/data-entry.prop.js"; export type { ChatSuggestionProp, ChatSuggestionProp as ChatSuggestionProps, ChatSuggestionItemProp, ChatSuggestionRenderProp, } from "../../props/components/data-entry.prop.js"; /** * ChatSuggestion — trigger-character autocomplete over a `ChatComposer` (Ant Design X * `Suggestion`). * * ## What it owns, and what it deliberately does not * * The list is the existing `Command` (cmdk) inside a `Popover`: the listbox/option roles, the * active-row bookkeeping and the scroll-into-view all come from a primitive that already ships * them, so there is no hand-rolled listbox here. What this component owns is the part `Command` * cannot know about — a `