fox-send/app/ui/okDialog.js

15 lines
433 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`
<send-ok-dialog class="flex flex-col max-w-xs p-4">
2018-11-16 20:39:36 +00:00
<div class="text-center m-8 leading-normal">${message}</div>
2019-01-16 20:38:43 +00:00
<button class="btn rounded w-full flex-no-shrink" onclick="${close}">
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
};
};