fox-send/app/templates/okDialog/index.js

14 lines
327 B
JavaScript
Raw Normal View History

2018-09-07 17:53:40 +00:00
const html = require('choo/html');
module.exports = function(message) {
2018-09-27 22:46:46 +00:00
return function(state, emit, close) {
2018-09-07 17:53:40 +00:00
return html`
<div class="okDialog">
<div class="okDialog__message">${message}</div>
<button class="btn" onclick=${close}>${state.translate(
'okButton'
)}</button>
</div>`;
};
};