22 lines
704 B
TypeScript
22 lines
704 B
TypeScript
// Server-safe exports (logic, types, helper). Client components (banner,
|
|
// provider, hook) are exported separately via ./client to keep the RSC/client
|
|
// boundary clean.
|
|
export {
|
|
ACCEPT_ALL_CONSENT,
|
|
CONSENT_CATEGORIES,
|
|
DEFAULT_CONSENT,
|
|
REJECT_ALL_CONSENT,
|
|
} from './categories.js'
|
|
export type { ConsentCategory, ConsentState } from './categories.js'
|
|
export { getConsentTexts } from './getConsentTexts.js'
|
|
export { setDefaultConsent, updateConsent } from './googleConsent.js'
|
|
export {
|
|
CONSENT_COOKIE,
|
|
CONSENT_MAX_AGE,
|
|
CONSENT_VERSION,
|
|
parseConsent,
|
|
serializeConsent,
|
|
} from './storage.js'
|
|
export type { ConsentTexts } from './texts.js'
|
|
export { useIsMounted } from './useIsMounted.js'
|