"use client";

import { ApolloNextAppProvider } from "@apollo/client-integration-nextjs";
import { ReactNode } from "react";
import makeClient from "@/lib/ApolloClientBrowser";

const ApolloWrapper = ({ children }: { children: ReactNode }) => {
  // const client = useMemo(() => initializeApollo(), []);
  
  return <ApolloNextAppProvider makeClient={makeClient}>{children}</ApolloNextAppProvider>;
};

export  {ApolloWrapper};
