Overview
The store is a global state that can be used to access the consent manager's state.
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 { createConsentManagerStore } from 'c15t';
const store = createConsentManagerStore(consentManager);
const hasFunctionality = store.getState().has('functionality');
Returns
Property
Types