@c15t/react
Version:
Developer-first CMP for React: cookie banner, consent manager, preferences centre. GDPR ready with minimal setup and rich customization
1 lines • 317 B
JavaScript
import*as e from"react";import*as t from"../context/consent-manager-context.js";function n(){let n=(0,e.useContext)(t.ConsentStateContext);if(void 0===n)throw Error("useConsentManager must be used within a ConsentManagerProvider");return{...n.state,...n.manager?{manager:n.manager}:{}}}export{n as useConsentManager};