'use client' import { useEffect, useState } from 'react' import posthog from 'posthog-js' import { Button } from '@/components/ui/button' import { motion, AnimatePresence } from 'framer-motion' import Link from 'next/link' import { Cookie } from 'lucide-react' export function CookieBanner() { const [show, setShow] = useState(false) useEffect(() => { const cookieConsent = localStorage.getItem('cookie_consent') if (!cookieConsent) { setShow(true) } }, []) const handleAccept = () => { localStorage.setItem('cookie_consent', 'accepted') posthog.opt_in_capturing() setShow(false) } const handleDecline = () => { localStorage.setItem('cookie_consent', 'declined') posthog.opt_out_capturing() setShow(false) } return ( {show && (

We value your privacy

We use cookies to enhance your browsing experience and analyze our traffic. By clicking "Accept", you consent to our use of cookies. Read our Privacy Policy.

)}
) }