import { createRoot } from "react-dom/client";
import { CompIDE } from "lowcoder-sdk";
import { name, version, lowcoder } from "./package.json";
import compMap from "./src/index";

import "../lowcoder-sdk/dist/style.css";

function CompDevApp() {
  return (
    <CompIDE
      compMap={compMap}
      packageName={name}
      packageVersion={version}
      compMeta={lowcoder.comps}
    />
  );
}

const container = document.querySelector("#root");
const root = createRoot(container!);
root.render(<CompDevApp />);
