9ea8653ef7
Had to make various other changes due to incompatibilities. - Use the new `lit` package instead of `lit-html` or `lit-element` - Drop `haunted` since it breaks the rules by specifying `type: module` but then doesn't import with file extensions - Use Sass Dart instead of node-sass (fixes #2445) - Upgrade Karma
11 lines
297 B
JavaScript
11 lines
297 B
JavaScript
import { html } from "lit";
|
|
|
|
|
|
export default (messages) => {
|
|
return html`
|
|
<div class="alert alert-danger">
|
|
<h3 class="alert-heading disconnect-msg">${messages[0]}</h3>
|
|
${ messages.slice(1).map(m => html`<p class="disconnect-msg">${m}</p>`) }
|
|
</div>`;
|
|
}
|