'use client' import { useEffect, useRef } from 'react' import type { ConsentCategory } from './categories.js' import { useConsentContext } from './ConsentContext.js' type ConsentScriptProps = { /** Default true. */ async?: boolean /** Extra attributes on the