import { Route, Routes } from 'react-router-dom';
import Projects from './components/projects/Projects';
import SiteNav from './components/siteNav/SiteNav';
import { IPublicClientApplication } from '@azure/msal-browser';
import { MsalProvider } from '@azure/msal-react';

interface AppProps {
  pca: IPublicClientApplication
}

const App = ({ pca }: AppProps) => {
  return (
    <MsalProvider instance={pca}>
      <SiteNav />
      <Routes>
        <Route path='/' element={<Projects />} />
      </Routes>
    </MsalProvider>
  )
}

export default App
