import AppRouter from "AppRouter";
import { useEffect } from "react";
import { useDispatch, useSelector } from "react-redux";
import { BrowserRouter } from "react-router-dom";
import { GlobalStyle } from "styles/GlobalStyle";

const App = (): JSX.Element => (
  <>
    <GlobalStyle />
    <BrowserRouter>
      <AppRouter />
    </BrowserRouter>
  </>
);

export default App;
