fox-send/app/ui/okDialog.js

19 lines
519 B
JavaScript
Raw Normal View History

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