mirror of
https://gitlab.com/timvisee/send.git
synced 2024-11-10 13:13:00 +01:00
15 lines
436 B
JavaScript
15 lines
436 B
JavaScript
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">
|
|
<div class="text-center m-8 leading-normal">${message}</div>
|
|
<button class="btn rounded-lg w-full flex-no-shrink" onclick="${close}">
|
|
${state.translate('okButton')}
|
|
</button>
|
|
</send-ok-dialog>
|
|
`;
|
|
};
|
|
};
|