import React from "react";
import { createRoot } from "react-dom/client";
import { ErpApp } from "./ui/ErpApp";
import "./design-system.css";
import "./schift-ui-token-bridge.css";
import "@schift-io/ui/tokens.css";
import "./ui/styles.css";

const root = document.getElementById("root");

if (!root) {
  throw new Error("Missing ERP app root.");
}

createRoot(root).render(
  <React.StrictMode>
    <ErpApp />
  </React.StrictMode>,
);
