import { StrictMode } from "react";
import { createRoot } from "react-dom/client";
import "./index.css";
import { App } from "./app/App";
import { ThemeProvider } from "./app/ThemeProvider";

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

if (rootElement.hasAttribute("data-static-seo")) {
  rootElement.replaceChildren();
  rootElement.removeAttribute("data-static-seo");
}

createRoot(rootElement).render(
  <StrictMode>
    <ThemeProvider>
      <App />
    </ThemeProvider>
  </StrictMode>
);
