To use the MarketingConsent API, install the @wix/marketing package using npm or Yarn:
@wix/marketing
or
Then import { marketingConsent } from @wix/marketing:
{ marketingConsent }