import React from 'react'
import ReactDOM from 'react-dom/client'
import { BrowserRouter } from 'react-router-dom'
import App from './App.jsx'
import { AuthProvider } from './contexts/AuthContext.jsx'
import { CategoryProvider } from './contexts/CategoryContext.jsx'
import { FilesProvider } from './contexts/FilesContext.jsx'
import { SkillsProvider } from './contexts/SkillsContext.jsx'
import './index.css'

ReactDOM.createRoot(document.getElementById('root')).render(
  <React.StrictMode>
    <BrowserRouter>
      <AuthProvider>
        <CategoryProvider>
          <FilesProvider>
            <SkillsProvider>
              <App />
            </SkillsProvider>
          </FilesProvider>
        </CategoryProvider>
      </AuthProvider>
    </BrowserRouter>
  </React.StrictMode>
)
