import { BrowserRouter } from 'react-router-dom'
import { SWRConfig } from 'swr'
import { ThemeProvider } from 'infra/theme'

import { AppRouter } from './app-router'

export const App = () => {
  return (
    <BrowserRouter>
      <SWRConfig value={{ shouldRetryOnError: false }}>
        <ThemeProvider>
          <AppRouter />
        </ThemeProvider>
      </SWRConfig>
    </BrowserRouter>
  )
}
