import React, { Suspense } from "react";
import { Node_Type } from "./../../ricos-types/index.js";
const Toc = React.lazy(
  () => import(
    /* webpackChunkName: "ricos_plugin_toc_lazy" */
    "./toc.js"
  ).then((m) => ({
    default: m.TocRenderer
  }))
);
const TocRendererInner = ({
  node,
  nodeIndex,
  NodeViewContainer,
  ...props
}) => {
  return /* @__PURE__ */ React.createElement(Toc, { node, nodeIndex, NodeViewContainer, ...props });
};
const TocLazy = ({ node, ...props }) => {
  return /* @__PURE__ */ React.createElement(Suspense, { fallback: "" }, /* @__PURE__ */ React.createElement(TocRendererInner, { key: node.id, node, ...props }));
};
const nodeViewRenderers = {
  [Node_Type.TOC]: TocLazy
};
export {
  nodeViewRenderers
};
//# sourceMappingURL=node-view-renderers-lazy.js.map
