To use the CookieBannerSettings API, install the @wix/consent-policy
package.
To install the package, follow the instructions below based on your development environment.
When developing with:
npm install @wix/consent-policy
or
yarn add @wix/consent-policy
When developing CLI or self-hosted Wix apps, as well as headless apps or sites, run the following command:
npm install @wix/consent-policy
or
yarn add @wix/consent-policy
To import the package in your code:
import { cookieBannerSettings } from "@wix/consent-policy";