Skip to content

consent hooks

The components already use these hooks. Reach for them when you build your own UI on the same data. Open a hook for its options and what it returns.

Other hooks

useConsentWhat is granted right now.
import { useConsent } from "@evolve-storefront/consent/provider";
function useConsent(): ConsentState

Returns ConsentState