2018-10-25 04:32:53 +02:00
|
|
|
const html = require('choo/html');
|
|
|
|
|
|
|
|
module.exports = function(message) {
|
|
|
|
return function(state, emit, close) {
|
|
|
|
return html`
|
2019-01-11 01:22:40 +01:00
|
|
|
<send-ok-dialog class="flex flex-col max-w-xs p-4">
|
2018-11-16 21:39:36 +01:00
|
|
|
<div class="text-center m-8 leading-normal">${message}</div>
|
2019-02-21 04:59:29 +01:00
|
|
|
<button
|
|
|
|
class="btn rounded-lg w-full flex-no-shrink"
|
|
|
|
onclick="${close}"
|
|
|
|
title="${state.translate('okButton')}"
|
|
|
|
>
|
2018-11-16 21:39:36 +01:00
|
|
|
${state.translate('okButton')}
|
|
|
|
</button>
|
2019-01-11 01:22:40 +01:00
|
|
|
</send-ok-dialog>
|
2018-11-16 21:39:36 +01:00
|
|
|
`;
|
2018-10-25 04:32:53 +02:00
|
|
|
};
|
|
|
|
};
|