From 4f70ad0279c4703651443458bb4bed855aae05f6 Mon Sep 17 00:00:00 2001 From: Charlotte Date: Sun, 12 Jan 2025 15:17:04 +0200 Subject: [PATCH] feat: add cookie consent component --- app/(root)/layout.tsx | 10 ++++ components/CookieConsent.tsx | 94 ++++++++++++++++++++++++++++++++++++ 2 files changed, 104 insertions(+) create mode 100644 components/CookieConsent.tsx diff --git a/app/(root)/layout.tsx b/app/(root)/layout.tsx index b701dc6..fc6f0dc 100644 --- a/app/(root)/layout.tsx +++ b/app/(root)/layout.tsx @@ -1,5 +1,8 @@ +"use client"; + import { Header } from "@/components/Header"; import { Footer } from "@/components/Footer"; +import CookieConsent from "@/components/CookieConsent"; export default function MainLayout({ children, @@ -8,6 +11,13 @@ export default function MainLayout({ }>) { return (
+
+ {}} + onDeclineCallback={() => {}} + /> +
+
{children}