import { useState, useEffect } from 'react'; import { Cookie, X } from 'lucide-react'; /** * GDPR/RODO compliant cookie consent banner * Shows at bottom of screen on first visit, stores consent in localStorage */ const CookieConsent = () => { const [isVisible, setIsVisible] = useState(false); useEffect(() => { // Check if user has already consented const hasConsented = localStorage.getItem('cookieConsent'); if (!hasConsented) { // Show banner after a short delay for better UX setTimeout(() => setIsVisible(true), 1000); } }, []); const handleAccept = () => { localStorage.setItem('cookieConsent', 'accepted'); setIsVisible(false); }; const handleDecline = () => { localStorage.setItem('cookieConsent', 'declined'); setIsVisible(false); }; if (!isVisible) return null; return (
{/* Icon */}
{/* Content */}

We use cookies

We use cookies and similar technologies to enhance your experience, analyze site traffic, and for authentication purposes. By clicking "Accept", you consent to our use of cookies.{' '} Learn more

{/* Actions */}
); }; export default CookieConsent;