+ {ENABLE_FEEDBACK && (
+
+
+ Was this page helpful?
+
+
+ {Object.entries(feedbackButtons).map(([key, button]) => {
+ const isActive = feedbackMode === key;
+
+ return (
+
+ );
+ })}
+
+
+ )}
+ {feedbackMode &&
+ (() => {
+ const activeFeedbackButton = feedbackButtons[feedbackMode];
+
+ if (submitted) {
+ return (
+
+
+ Feedback submitted. Thank you!
+
+
+ );
+ }
+
+ return (
+
+ {activeFeedbackButton?.description && (
+
+ {activeFeedbackButton.description}
+
+ )}
+
+ );
+ })()}
+
+
+ {lastUpdated && (
+
+ Last updated: {lastUpdated}
+
+ )}
+ {githubEditPath && (
+
+
+ Edit on GitHub
- ))}
+ )}
-
- {[leftFooterLinks, rightFooterLinks].map((links, index) => (
-
- {links.map((link) => (
-
- {link.label}
-
+
+
+
+ {[leftFooterLinks, rightFooterLinks].map((links, index) => (
+
))}
- ))}
-
-
-);
+
+
+
+ );
+};
export default Footer;
diff --git a/src/components/Layout/Layout.tsx b/src/components/Layout/Layout.tsx
index fc369582af..51bef210aa 100644
--- a/src/components/Layout/Layout.tsx
+++ b/src/components/Layout/Layout.tsx
@@ -19,6 +19,7 @@ export type Frontmatter = {
meta_description: string;
meta_keywords?: string;
redirect_from?: string[];
+ last_updated?: string;
};
export type PageContextType = {
@@ -45,7 +46,7 @@ const Layout: React.FC
= ({ children, pageContext }) => {
{leftSidebar ? : }
{children}
-
+
{rightSidebar ? : }
diff --git a/src/hooks/use-site-metadata.ts b/src/hooks/use-site-metadata.ts
index 3435e32f3f..99e879d7d2 100644
--- a/src/hooks/use-site-metadata.ts
+++ b/src/hooks/use-site-metadata.ts
@@ -28,6 +28,7 @@ export const useSiteMetadata = () => {
mixpanelAutoCapture
posthogApiKey
posthogHost
+ posthogFeedbackSurveyName
conversationsUrl
}
}