import { store } from "@/app/store";
import ReactDOM from "react-dom/client";
import { Provider } from "react-redux";
import { BrowserRouter } from "react-router-dom";

import { initializeElementRegistry } from '../lib/element-registry-init';
import App from "./App.tsx";
import "./index.css";

// Инициализируем реестр элементов
initializeElementRegistry();

ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
  <BrowserRouter>
    <Provider store={store}>
      <App />
    </Provider>
  </BrowserRouter>,
);
