UNPKG

@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) 665 B
import{useEffect as e}from"react";const t=({domainId:t})=>(e((()=>{const e=document.createElement("script");e.src=`https://cdn.cookielaw.org/consent/${t}/OtAutoBlock.js`,document.head.appendChild(e);const o=document.createElement("script");o.src="https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",o.dataset.documentLanguage=!0,o.type="text/javascript",o.dataset.domainScript=t,document.head.appendChild(o);const c=document.createElement("script");return c.text="function OptanonWrapper() {}",document.head.appendChild(c),()=>{document.head.removeChild(e),document.head.removeChild(o),document.head.removeChild(c)}}),[t]),null);export{t as OneTrustComponent};