import { StrictMode } from "react";
import { createRoot } from "react-dom/client";
import App from "./App";
import { CompanyProvider } from "./lib/company";
import "./styles.css";

const rootEl = document.getElementById("root");
if (!rootEl) throw new Error("#root element not found");

createRoot(rootEl).render(
  <StrictMode>
    <CompanyProvider>
      <App />
    </CompanyProvider>
  </StrictMode>,
);
