import { jsx as l, Fragment as a } from "react/jsx-runtime";
import { createPlugins as o } from "@udecode/plate-core";
import { Toolbar as s } from "../components/Toolbar/index.es.js";
const i = (e) => o(e.plugins, {
  components: e.elements
}), u = (e, t) => ({
  plugins: i(t),
  toolbar: (n) => t.hasToolbar ? /* @__PURE__ */ l(s, { toolbarButtons: t.buttons, editorId: e, toolbarWidth: n }) : null,
  inline: () => /* @__PURE__ */ l(a, { children: t.inline.map((n, r) => /* @__PURE__ */ l(n, {}, r)) }),
  styles: () => t.getStyles
});
export {
  i as createPlatePlugins,
  u as generatePlugins
};
//# sourceMappingURL=GeneratePlugins.es.js.map
