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