import { useCookieConsent } from '../context/CookieConsentContext.jsx'; export default function ExternalEmbed({ name, description, className = '', children }) { const { consent, acceptAll, openSettings } = useCookieConsent(); if (consent.external) { return children; } return (

{description || `${name} wird erst nach deiner Zustimmung geladen, da dabei Daten an Google übertragen werden.`}

); }