import { createRoot } from "react-dom/client";
import App from "./App.tsx";
import "./index.css";
import { detectLanguage } from "./i18n/config";
import { setDocumentDirection } from "./lib/set-document-direction";
import "./lib/posthog";

// Same detector i18n initialises with, so the document direction can never
// disagree with the rendered language (a Hebrew UI laid out LTR).
setDocumentDirection(detectLanguage());

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