diff --git a/src/components/Footer.jsx b/src/components/Footer.jsx index f69869550..a20d0f4b8 100644 --- a/src/components/Footer.jsx +++ b/src/components/Footer.jsx @@ -6,6 +6,7 @@ import { Transition } from '@headlessui/react' import { Button } from '@/components/Button' import {apiNavigation, flattenNavItems} from '@/components/NavigationAPI' import {docsNavigation} from "@/components/NavigationDocs"; +import {useCookieConsent} from '@/components/cookie-consent/CookieConsentProvider' function CheckIcon(props) { return ( @@ -227,11 +228,20 @@ function SocialLink({ href, icon: Icon, children }) { } function SmallPrint() { + const { openCookieSettings } = useCookieConsent() + return (
-

- © Copyright {new Date().getFullYear()}. All rights reserved. -

+
+

© Copyright {new Date().getFullYear()}. All rights reserved.

+ +
Follow us on X diff --git a/src/components/GoogleTagManager.jsx b/src/components/GoogleTagManager.jsx index 3d32abe79..f41f028b7 100644 --- a/src/components/GoogleTagManager.jsx +++ b/src/components/GoogleTagManager.jsx @@ -4,10 +4,14 @@ import Script from "next/script"; // Google Tag Manager ID const GTM_ID = "GTM-PGWDPDN3"; -export const GoogleTagManagerHeadScript = () => { +export const GoogleTagManager = ({ consentGiven }) => { + if (!consentGiven) { + return null; + } + return ( ); }; - -export const GoogleTageManagerBodyScript = () => { - return ( -