@nexusui/components
Version:
These are custom components specially-developed for NexusUI applications. They will make your life easier by giving you out-of-the-box implementations for various high-level UI elements that you can drop directly into your application.
2 lines (1 loc) • 719 B
JavaScript
;Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react");exports.OneTrustComponent=({domainId:t})=>(e.useEffect((()=>{const e=document.createElement("script");e.src=`https://cdn.cookielaw.org/consent/${t}/OtAutoBlock.js`,document.head.appendChild(e);const n=document.createElement("script");n.src="https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",n.dataset.documentLanguage=!0,n.type="text/javascript",n.dataset.domainScript=t,document.head.appendChild(n);const o=document.createElement("script");return o.text="function OptanonWrapper() {}",document.head.appendChild(o),()=>{document.head.removeChild(e),document.head.removeChild(n),document.head.removeChild(o)}}),[t]),null);