UNPKG

@blinkk/editor

Version:

Structured content editor with live previews.

22 lines 735 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.templateApiError = void 0; const selective_edit_1 = require("@blinkk/selective-edit"); function templateApiError(editor, error, options) { if (!error) { return selective_edit_1.html ``; } return selective_edit_1.html `<div class=${selective_edit_1.classMap({ le__error: true, 'le__error--pad': Boolean(options?.pad), })} > <div class="le__error__message">${error.message}</div> ${error.description ? selective_edit_1.html `<p class="le__error__description">${error.description}</p>` : ''} </div>`; } exports.templateApiError = templateApiError; //# sourceMappingURL=error.js.map