text: import React from "react";
  import App, { Container } from "next/app";
  import { ApolloProvider } from "react-apollo";
  import withData from "../lib/widthData";
  import Page from "./page";
  
  class MyApp extends App {
    static async getInitialProps({ Component, ctx }) {
      let pageProps = {};
  
      if (Component.getInitialProps) {
        pageProps = await Component.getInitialProps(ctx);
      }
  
      return { pageProps };
    }
  
    render() {
      const { Component, pageProps, apollo } = this.props;
  
      return (
        <Container>
          <ApolloProvider client={apollo}>
            <Page>
              <Component {...pageProps} />
            </Page>
          </ApolloProvider>
        </Container>
      );
    }
  }
  export default withData(MyApp);
  