18 lines
492 B
TypeScript
18 lines
492 B
TypeScript
import type { AppProps } from 'next/app'
|
|
|
|
import { AuthProvider } from '../components/Auth'
|
|
import { Header } from '../components/Header'
|
|
|
|
import '../css/app.scss'
|
|
|
|
export default function MyApp({ Component, pageProps }: AppProps) {
|
|
return (
|
|
// The `AuthProvider` can be used with either REST or GraphQL APIs
|
|
// Just change the `api` prop to "graphql" or "rest", that's it!
|
|
<AuthProvider api="rest">
|
|
<Header />
|
|
<Component {...pageProps} />
|
|
</AuthProvider>
|
|
)
|
|
}
|