@tantainnovative/ndpr-toolkit
Version:
Nigerian Data Protection Compliance Toolkit for implementing NDPR and DPA compliant features
11 lines • 659 B
TypeScript
import React from 'react';
import { BaseConsentCategories, DefaultConsentCategories, ConsentContextValue, ConsentProviderProps } from '@/types/consent';
/**
* Factory function to create a typed consent context
*/
export declare function createConsentContext<T extends BaseConsentCategories = DefaultConsentCategories>(): {
ConsentContext: React.Context<ConsentContextValue<T> | undefined>;
ConsentProvider: ({ children, initialConsent, onConsentChange, storageKey, categories, }: ConsentProviderProps<T>) => import("react/jsx-runtime").JSX.Element;
useConsent: () => ConsentContextValue<T>;
};
//# sourceMappingURL=GenericConsentContext.d.ts.map