import { COOKIE_CONFIGURATION_UPDATE } from 'src/plugin/cookie/cookie-configuration.plugin';
document.$emitter.subscribe(COOKIE_CONFIGURATION_UPDATE, eventCallback);
function eventCallback(updatedCookies) {
if (typeof updatedCookies.detail['cookie-key-1'] !== 'undefined') {
// The cookie with the cookie attribute "cookie-key-1" either is set active or from active to inactive
let cookieActive = updatedCookies.detail['cookie-key-1'];
// The cookie with the cookie attribute "cookie-key-1" was not updated