"use client"; import React, { useEffect, useState } from "react"; import Link from "next/link"; import { Cookie } from "lucide-react"; import { getConsent, setConsent } from "@/lib/analytics"; /** * Asks once whether we may use a cookie-like identifier to count visits (our own * registration-funnel stats). Declining changes nothing else about the site. */ export function CookieConsent() { const [show, setShow] = useState(false); useEffect(() => { setShow(getConsent() === null); }, []); if (!show) return null; const choose = (v: "accepted" | "declined") => { setConsent(v); setShow(false); }; return (

May we count your visit? We use our own anonymous statistics (no third-party analytics) to see how people find and register for events.{" "} Privacy policy

); }