import "./i18n";
import { StrictMode } from "react";
import { createRoot } from "react-dom/client";
import App from "./App";
import "./index.css";
import { initMediaDebug } from "./lib/mediaDebug";
import { RootErrorBoundary } from "@/components/ui/RootErrorBoundary";

// No-op unless explicitly enabled (?debug=video / localStorage / VITE_DEBUG_MEDIA).
initMediaDebug();

createRoot(document.getElementById("root")!).render(
  <StrictMode>
    <RootErrorBoundary>
      <App />
    </RootErrorBoundary>
  </StrictMode>,
);
