From 9e79b27dfda32a95364e8292f877a97bf5303864 Mon Sep 17 00:00:00 2001 From: ranyabel Date: Wed, 17 Jul 2024 14:43:42 -0400 Subject: [PATCH] add bot to footer --- website/src/theme/Footer/index.js | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 website/src/theme/Footer/index.js diff --git a/website/src/theme/Footer/index.js b/website/src/theme/Footer/index.js new file mode 100644 index 000000000..dc94e2713 --- /dev/null +++ b/website/src/theme/Footer/index.js @@ -0,0 +1,22 @@ +import React, { useEffect } from "react"; +import Footer from "@theme-original/Footer"; + +export default function FooterWrapper(props) { + useEffect(() => { + const script = document.createElement("script"); + script.id = "ze-snippet"; + script.src = + "https://static.zdassets.com/ekr/snippet.js?key=3292009a-b672-4683-8691-2bf2475a3398"; + document.body.appendChild(script); + + return () => { + document.body.removeChild(script); + }; + }, []); + + return ( + <> +