"use client"; import { useCookieConsent } from "@shared/hooks/cookie-consent"; import { Button } from "@ui/components/button"; import { CookieIcon } from "lucide-react"; import { useEffect, useState } from "react"; export function ConsentBanner() { const { userHasConsented, allowCookies, declineCookies } = useCookieConsent(); const [mounted, setMounted] = useState(false); useEffect(() => { setMounted(true); }, []); if (!mounted) { return null; } if (userHasConsented) { return null; } return (

This site doesn't use cookies yet, but we added this banner to demo it to you.

); }