import $ from 'jquery'; import {svg} from '../../svg.js'; import {htmlEscape} from 'escape-goat'; import {createElementFromHTML} from '../../utils/dom.js'; const {i18n} = window.config; export function confirmModal(content, {confirmButtonColor = 'primary'} = {}) { return new Promise((resolve) => { const modal = createElementFromHTML(`