Skip to main content
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

children
React.ReactNode
required
children
needsConsent

Usage

import { DataConsentProvider } from '@/components/DataConsentProvider';

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