import React from "react";
import { createRoot } from "react-dom/client";
import { Provider } from "react-redux";
import { store } from "./store";
import { AdminApp } from "./admin/AdminApp";
import './_root.scss';

const el = document.getElementById("zozo-chat-admin-root");
if (el) {
  createRoot(el).render(
    <React.StrictMode>
      <Provider store={store}>
        <AdminApp />
      </Provider>
    </React.StrictMode>
  );
} else {
  console.warn('#zozo-chat-admin-root not found');
}
