import React from 'react';
import ReactDOM from 'react-dom/client';
import { ProvideAuth } from './context/auth';
import 'react-toastify/dist/ReactToastify.css';
import './index.css';
import AppRoutes from './AppRoutes';
import { BrowserRouter } from 'react-router';

const root = ReactDOM.createRoot(
  document.getElementById('root') as HTMLElement
);
root.render(
  <React.StrictMode>
    <BrowserRouter>
      <ProvideAuth>
        <AppRoutes />
      </ProvideAuth>
    </BrowserRouter>
  </React.StrictMode>
);
