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-01-11 00:22:40 +00:00
|
|
|
<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>
|
|
|
|
<button
|
|
|
|
class="rounded bg-blue hover\:bg-blue-dark focus\:bg-blue-darker cursor-pointer text-center text-white py-2 px-6 h-12 w-full flex flex-no-shrink items-center justify-center font-semibold"
|
|
|
|
onclick="${close}"
|
|
|
|
>
|
|
|
|
${state.translate('okButton')}
|
|
|
|
</button>
|
2019-01-11 00:22:40 +00:00
|
|
|
</send-ok-dialog>
|
2018-11-16 20:39:36 +00:00
|
|
|
`;
|
2018-10-25 02:32:53 +00:00
|
|
|
};
|
|
|
|
};
|