> ## Documentation Index
> Fetch the complete documentation index at: https://docs.renchi.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# DataConsentProvider

> DataConsentProvider component

Wraps the dashboard to show consent dialog on first login.

Shows the data consent dialog when the user hasn't acknowledged it yet (`dataConsentAcknowledgedAt` is null). The dialog cannot be dismissed without clicking "Got it".

## Props

<ResponseField name="children" type="React.ReactNode" required={true}>
  children
</ResponseField>

<ResponseField name="needsConsent" type="boolean" required={true}>
  needsConsent
</ResponseField>

## Usage

```tsx theme={null}
import { DataConsentProvider } from '@/components/DataConsentProvider';

export default function Example() {
  return (
    <DataConsentProvider children={children} needsConsent={needsConsent} />
  );
}
```
