24
1
Fork 0
drop.chapril.org-firefoxsend/app/ui/okDialog.js

21 lines
556 B
JavaScript
Raw Normal View History

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-03-01 21:56:10 +01:00
<send-ok-dialog class="flex flex-col max-w-sm p-4 m-auto">
2019-06-14 20:30:43 +02:00
<h2 class="text-center text-xl font-bold m-8 leading-normal">
${message}
</h2>
2019-02-21 04:59:29 +01:00
<button
2019-06-14 20:30:43 +02:00
class="btn rounded-lg w-full flex-shrink-0"
2019-02-21 04:59:29 +01:00
onclick="${close}"
title="${state.translate('okButton')}"
>
2018-11-16 21:39:36 +01:00
${state.translate('okButton')}
</button>
</send-ok-dialog>
2018-11-16 21:39:36 +01:00
`;
2018-10-25 04:32:53 +02:00
};
};