import React from "react";
import {BrowserRouter} from "react-router-dom";
import ReactDOM from "react-dom/client";
import {Provider} from "react-redux";
import store from "./store/index";
import "../styles/main.scss";
import "../styles/layout/defualt.scss";
import Authenticator from "./app/Authenticator";


let root = ReactDOM.createRoot(document.getElementById("app"));

root.render(
  <Provider store={store}>
    <BrowserRouter>
      <Authenticator/>
    </BrowserRouter>
  </Provider>
);

function DestroyPodchat(elementId) {
  root.unmount();
}
window.DestroyPodchat = DestroyPodchat;