import { StrictMode } from "react";
import { createRoot } from "react-dom/client";
import { installGermanZodErrorMap } from "@/validation/zodErrorMap";
import App from "./App";
import "@/styles/index.css";

installGermanZodErrorMap();

const rootElement = document.getElementById("root");
if (!rootElement) throw new Error("Root-Element wurde nicht gefunden.");

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