import { Loader } from "lucide-react"; import { type VideoCookieName } from "@/front/types/cookie"; import useCookieNotice from "@/hooks/use-cookie-notice"; import { cn, GetTranslation } from "@/lib/utils"; interface Props { service: VideoCookieName; embedUrl: string; title: string; className?: string; iframeContainerClassName?: string; } function NoStatusComponent({ loading, service, accept, }: { loading: boolean; service: VideoCookieName; accept: () => void; }) { const warning = GetTranslation( `uwil-common::cookie-notice.custom.${service}.warning`, ); const acceptLabel = GetTranslation( `uwil-common::cookie-notice.custom.${service}.accept`, ); return loading ? (
) : (

{warning}

); } export default function VideoEmbedWithConsent({ service, embedUrl, title, className = "", iframeContainerClassName = "", }: Props) { const { status, loading, accept } = useCookieNotice(service); return (
{!status ? ( ) : (