import { render as renderMp } from "../../render-mp";
import projectJson from "./projectJson.json";
import libSourceCode from "./libSourceCode";
import u_UxDY6 from "./modules/u_UxDY6";
import u_7tSiZ from "./modules/u_7tSiZ";
import "./newIndex.less";

const Index = () => {

  return (
    <>
      {projectJson
        ? renderMp(projectJson as any, {
          env: {},
          events: [],
          comDefs: {
            "fangzhou.community-ktaro.text-1.0.0": {
              "namespace": "fangzhou.community-ktaro.text",
              "version": "1.0.0",
              "runtime": import("./components/fangzhou_community-ktaro_text")
              // "runtime": libSourceCode["fangzhou.community-ktaro.text@@1.0.0"].runtime
            },
            "fangzhou.community-ktaro.container-1.0.0": {
              "namespace": "fangzhou.community-ktaro.container",
              "version": "1.0.0",
              "runtime": libSourceCode["fangzhou.community-ktaro.container@@1.0.0"].runtime
            },
            "fangzhou.community-ktaro.image-1.0.0": {
              "namespace": "fangzhou.community-ktaro.image",
              "version": "1.0.0",
              "runtime": libSourceCode["fangzhou.community-ktaro.image@@1.0.0"].runtime
            },
            "fangzhou.community-ktaro._code-segment-1.0.1": {
              "namespace": "fangzhou.community-ktaro._code-segment",
              "version": "1.0.0",
              "runtime": libSourceCode["fangzhou_community-ktaro__code-segment@@1.0.1"].runtime
            },
            "fangzhou.community-ktaro._my_node-1.0.0": {
              "namespace": "fangzhou.community-ktaro._my_node",
              "version": "1.0.0",
              "runtime": libSourceCode["fangzhou_community-ktaro__my_node@@1.0.0"].runtime
            }
          },
          comModules: {
            "u_UxDY6": require("./modules/u_UxDY6"),
            "u_7tSiZ": require("./modules/u_7tSiZ"),
          },
        })
        : null}
    </>
  );
};

export default Index;
