reRunPlugin = (state, showModal) => {
    const cc = window.CookieConsent;

    cc.reset();
    const config = getCurrentUserConfig(state);

    cc.run(config).then(() => {
        showModal === 1 && cc.show(true);
        showModal === 2 && cc.showPreferences();
    });
}
@param {typeof defaultState} state
@param {1 | 2} [showModal]