import * as React from 'react';
import { createRoot } from 'react-dom/client';
import Home from './Home';
import { AuthProvider } from "../react-auth/src";
import { OpenapiProvider } from "../react-openapi/src";

const rootElement = document.getElementById('root');
const root = createRoot(rootElement);
const AUTH_BASE = import.meta.env.VITE_AUTH_BASE_URL;

root.render(
  <AuthProvider authBaseUrl={AUTH_BASE}>
    <OpenapiProvider authBaseUrl={AUTH_BASE}>
      <Home />
    </OpenapiProvider>
  </AuthProvider>
);
