comicbox/pages/_app.tsx

22 lines
606 B
TypeScript
Raw Normal View History

import '../styles/globals.css';
import type { AppProps } from 'next/app';
import { SessionProvider } from 'next-auth/react';
import NavBar from '../components/NavBar';
2022-07-27 20:56:32 +00:00
import Footer from '../components/Footer';
2022-07-19 20:32:51 +00:00
function MyApp({ Component, pageProps }: AppProps) {
2022-07-25 17:31:20 +00:00
return (
2022-07-27 20:56:32 +00:00
<div className='min-h-screen flex flex-col'>
2022-07-25 17:31:20 +00:00
<SessionProvider>
<NavBar />
2022-07-27 20:56:32 +00:00
<div className='flex-1'>
<Component {...pageProps} />
</div>
<Footer />
2022-07-25 17:31:20 +00:00
</SessionProvider>
2022-07-27 20:56:32 +00:00
</div>
2022-07-25 17:31:20 +00:00
);
2022-07-19 20:32:51 +00:00
}
export default MyApp;