---
title: Overview
description: The useConsentManager hook is a React hook that provides access to the consent manager's state.
lastModified: 2025-08-20
availableIn:
  - framework: 'javascript'
    url: '/docs/frameworks/javascript/store/overview'
    title: 'JavaScript'
  - framework: 'next'
    url: '/docs/frameworks/next/hooks/use-consent-manager/overview'
    title: 'Next.js'
  - framework: 'react'
    url: '/docs/frameworks/react/hooks/use-consent-manager/overview'
    title: 'React'
---
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

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

const { has } = useConsentManager();

const hasFunctionality = has('functionality');
```

## Returns

| Property    | Value                            |
| :---------- | :------------------------------- |
| Type Name   | \`PrivacyConsentState\`          |
| Source Path | \`./packages/core/src/index.ts\` |

\*AutoTypeTable: Could not extract \`PrivacyConsentState\` from \`./packages/core/src/index.ts\`. Verify the path/name and that the file is included by your tsconfig.\*
