import { jsx as b } from "react/jsx-runtime";
import { useEmojiComboboxState as n, KEY_EMOJI as c } from "@udecode/plate-emoji";
import { EmojiComboboxItem as x } from "./EmojiComboboxItem.es.js";
import { useEmojiSelect as E } from "../useEmojiSelect.es.js";
import { Combobox as f } from "../../../components/ComboBox/Combobox.es.js";
function I({ pluginKey: o = c, id: m = o, ...t }) {
  const { trigger: r } = n({ pluginKey: o }), { selectEmojiFromCombobox: e } = E();
  return /* @__PURE__ */ b(
    f,
    {
      id: m,
      trigger: r,
      controlled: !0,
      onSelectItem: (j, i) => e(i),
      onRenderItem: x,
      ...t
    }
  );
}
export {
  I as EmojiCombobox
};
//# sourceMappingURL=EmojiCombobox.es.js.map
