"use client"; import { useState, useEffect } from "react"; import { motion, AnimatePresence } from "framer-motion"; export function CookieConsent() { const [show, setShow] = useState(false); useEffect(() => { const consent = localStorage.getItem("cookie-consent"); if (!consent) { const timer = setTimeout(() => setShow(true), 3000); return () => clearTimeout(timer); } }, []); const accept = () => { localStorage.setItem("cookie-consent", "accepted"); setShow(false); }; const decline = () => { localStorage.setItem("cookie-consent", "declined"); setShow(false); }; return ( {show && (

We use cookies to make your experience better. By continuing to visit this site you agree to our use of cookies.

)}
); }