ConsentState
type ConsentState = { decisions: Record<string, boolean>; isOpen: boolean; noticeOpen: boolean; ready: boolean; resolved: ResolvedCategory[]; storedAt: number | null;};Defined in: store.ts:11
Type declaration
| Name | Type | Description | Defined in |
|---|---|---|---|
decisions | Record<string, boolean> | Map of category ID → granted (true) / denied (false). | store.ts:24 |
isOpen | boolean | True when the consent banner / preference centre should be visible. | store.ts:15 |
noticeOpen | boolean | True when a notice card should be visible — set when the site has any notice-mode category and no consent-mode category (the consent banner already covers notice-mode categories in its list, so we don’t show both). Closes when the user saves, resets, or explicitly dismisses. | store.ts:22 |
ready | boolean | True after the store has hydrated from the cookie (client-only). | store.ts:13 |
resolved | ResolvedCategory[] | Resolved categories for the active jurisdiction. | store.ts:26 |
storedAt | number | null | Timestamp of the most-recent stored decision, if any. | store.ts:28 |