cordis/client/webapp/elements/overlay-error-message.ts

11 lines
367 B
TypeScript

import BaseElements from './require/base-elements.js';
export default function createErrorMessageOverlay(document: Document, title: string, message: string): HTMLElement {
return BaseElements.createOverlay(document, {
class: 'content error-message', content: [
{ class: 'title', content: title },
{ class: 'message', content: message }
]
});
}