react-cookify
Version:
Simple, customizable open source cookie consent banner for GDPR law
12 lines (11 loc) • 443 B
TypeScript
import { CookifyOptionsType, ConsentObjectType } from '../types';
export declare const useCookify: (options: CookifyOptionsType) => {
consentObject: ConsentObjectType;
consentDisplayed: boolean;
handleConsentDisplayedChange: (newConsentDisplayed: boolean) => void;
consentTracking: number;
actionCheckbox: (type: string) => void;
actionAccept: () => void;
actionNecessary: () => void;
actionAll: () => void;
};