import { StrictMode } from "react";
import { createRoot } from "react-dom/client";
import { App } from "./app/App";
import { registerAppShellServiceWorker } from "./app/pwa";
import "./styles/tokens.css";
import "./styles/global.css";
import "./styles/responsive.css";

const app = document.querySelector<HTMLDivElement>("#app");

if (!app) {
  throw new Error("App mount element was not found.");
}

createRoot(app).render(
  <StrictMode>
    <App />
  </StrictMode>
);

registerAppShellServiceWorker();
