C15T Logo

Overview

The useConsentManager hook is a React hook that provides access to the consent manager's state.

tocOn this page

The store is the global state for the consent manager. It includes the user's consent preferences, location, consent banner state, and methods to update them.

Usage

import { useConsentManager } from '@c15t/react';

const { has } = useConsentManager();

const hasFunctionality = has('functionality');

Returns

Property
Types