import { BrowserRouter } from 'react-router-dom'
import { UserContextProvider } from './contexts/UserContext'
import { CoreLayout } from './CoreLayout'
import { AppContextProvider } from './contexts/AppContext'

import './app.scss'

const App = () => {
  return (
    <BrowserRouter>
      <AppContextProvider baseURL="/api">
        <UserContextProvider>
          <CoreLayout />
        </UserContextProvider>
      </AppContextProvider>
    </BrowserRouter>
  )
}

export default App
