Index: renderer/usePageContext.tsx
===================================================================
--- renderer/usePageContext.tsx	(revision 40ac7a920a0b08c324bf4201b03a36483cc3aad4)
+++ renderer/usePageContext.tsx	(revision 40ac7a920a0b08c324bf4201b03a36483cc3aad4)
@@ -0,0 +1,32 @@
+// renderer/usePageContext.tsx
+import React, { useContext } from 'react';
+
+export type PageContext = {
+    Page: any;
+    pageProps?: any;
+    urlPathname: string;
+    exports: {
+        documentProps?: {
+            title?: string;
+            description?: string;
+        };
+    };
+    session?: any;
+};
+
+const Context = React.createContext<PageContext>(undefined as any);
+
+export function PageContextProvider({
+                                        pageContext,
+                                        children,
+                                    }: {
+    pageContext: PageContext;
+    children: React.ReactNode;
+}) {
+    return <Context.Provider value={pageContext}>{children}</Context.Provider>;
+}
+
+export function usePageContext() {
+    const pageContext = useContext(Context);
+    return pageContext;
+}
