13 lines
405 B
TypeScript
13 lines
405 B
TypeScript
import '../styles/globals.css'
|
|
import type { AppProps } from 'next/app'
|
|
import { useApollo } from '../lib/graphql/apollo'
|
|
import { ApolloProvider } from '@apollo/client'
|
|
|
|
function MyApp({ Component, pageProps }: AppProps) {
|
|
const apolloClient = useApollo(pageProps.initialApolloState)
|
|
|
|
return <ApolloProvider client={apolloClient}><Component {...pageProps} /></ApolloProvider>
|
|
}
|
|
|
|
export default MyApp
|