import { StrictMode } from 'react'
import { createRoot } from 'react-dom/client'
import { BrowserRouter } from 'react-router-dom'
import { BooksProvider } from './context/BooksContext.jsx'
import { OrdersProvider } from './context/OrdersContext.jsx'
import { PromotionsProvider } from './context/PromotionsContext.jsx'
import App from './App.jsx'
import './index.css'

createRoot(document.getElementById('root')).render(
  <StrictMode>
    <BrowserRouter>
      <PromotionsProvider>
        <OrdersProvider>
          <BooksProvider>
            <App />
          </BooksProvider>
        </OrdersProvider>
      </PromotionsProvider>
    </BrowserRouter>
  </StrictMode>,
)
