///
import { DefaultSuggestionItem } from "@blocknote/core";
/**
* Although any arbitrary data can be passed as suggestion items, the built-in
* UI components such as `MantineSuggestionMenu` expect a shape that conforms to DefaultSuggestionItem
*/
export type DefaultReactSuggestionItem = Omit & {
icon?: JSX.Element;
};
/**
* Props passed to a suggestion menu component
*/
export type SuggestionMenuProps = {
items: T[];
loadingState: "loading-initial" | "loading" | "loaded";
selectedIndex: number | undefined;
onItemClick?: (item: T) => void;
};