import "@smastrom/react-rating/style.css";
import React from "react";
import ReactDOM from "react-dom/client";
import { BrowserRouter } from "react-router-dom";
import "swiper/swiper-bundle.css";
import App from "./App.jsx";
import "./index.css";
import "./i18n/i18n.js";
import { I18nextProvider } from "react-i18next";
import {  HelmetProvider } from "react-helmet-async";

// Override local storage color mode setting to light
if (localStorage.getItem("chakra-ui-color-mode") === "dark") {
  localStorage.setItem("chakra-ui-color-mode", "light");
}

ReactDOM.createRoot(document.getElementById("root")).render(
  <React.StrictMode>
    <I18nextProvider i18n={window.i18n}>
      <BrowserRouter>
        <HelmetProvider>
          {" "}
          <App />
        </HelmetProvider>{" "}
      </BrowserRouter>
    </I18nextProvider>
  </React.StrictMode>
);
