"use client";
import { jsxs as s, Fragment as d, jsx as e } from "react/jsx-runtime";
import { useEffect as p } from "react";
import { EditorRenderBlock as a } from "./editor-render-block.js";
import "../../config/theme.config.js";
import { BuilderConfiguration as u } from "../../config/builder.config.js";
const x = ({
  content: i,
  children: n,
  meta: m,
  builderConfig: r
}) => {
  p(() => {
    r && u.mergeConfig(r);
  }, [r]);
  const o = i.root;
  return o ? /* @__PURE__ */ s(d, { children: [
    /* @__PURE__ */ e("main", { children: o.children.map(
      (t, f) => typeof t == "string" && /* @__PURE__ */ e(
        a,
        {
          index: f,
          block: t,
          meta: m,
          isEditable: !0
        },
        t
      )
    ) }),
    n
  ] }) : null;
};
export {
  x as default
};
//# sourceMappingURL=editor-render-content.js.map
