import { jsx as i } from "react/jsx-runtime";
import { useEditorRef as f, getPluginOptions as b } from "@udecode/plate-core";
import { getMentionOnSelectItem as c, ELEMENT_MENTION as p } from "@udecode/plate-mention";
import { MentionComboboxItem as s } from "./MentionComboboxItem.es.js";
import { Combobox as x } from "../../../components/ComboBox/Combobox.es.js";
function u({
  pluginKey: o = p,
  id: e = o,
  ...r
}) {
  const t = f(), { trigger: m } = b(t, o);
  return /* @__PURE__ */ i(
    x,
    {
      id: e,
      trigger: m,
      controlled: !0,
      onSelectItem: (E, n) => c({
        key: o
      })(t, n),
      onRenderItem: s,
      ...r
    }
  );
}
export {
  u as MentionCombobox
};
//# sourceMappingURL=MentionCombobox.es.js.map
