Initial commit

This commit is contained in:
fraqtal
2026-07-12 08:15:46 +00:00
commit ee0fec0691
1397 changed files with 127242 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
"use client";
import { useState, useEffect, type ComponentPropsWithoutRef } from "react";
import { CookieConsentBanner } from "./cookie-consent-banner";
export type CookieConsentBannerLoaderProps = ComponentPropsWithoutRef<
typeof CookieConsentBanner
>;
/**
* SSR-safe wrapper that renders null on the server and mounts
* <CookieConsentBanner> client-side only (after hydration).
*/
export function CookieConsentBannerLoader(
props: CookieConsentBannerLoaderProps,
) {
const [mounted, setMounted] = useState(false);
useEffect(() => {
setMounted(true);
}, []);
if (!mounted) return null;
return <CookieConsentBanner {...props} />;
}