mirror of
https://gitlab.com/timvisee/send.git
synced 2024-11-14 15:12:48 +01:00
abc58518ea
Co-authored-by: timvisee <tim@visee.me>
26 lines
626 B
JavaScript
26 lines
626 B
JavaScript
const html = require('choo/html');
|
|
|
|
module.exports = function(state, emit) {
|
|
return html`
|
|
<send-modal
|
|
class="absolute inset-0 flex items-center justify-center overflow-hidden z-40 bg-white md:rounded-xl md:my-8 dark:bg-grey-90"
|
|
>
|
|
<div
|
|
class="h-full w-full max-h-screen absolute top-0 flex justify-center md:items-center"
|
|
>
|
|
<div class="w-full">
|
|
${state.modal(state, emit, close)}
|
|
</div>
|
|
</div>
|
|
</send-modal>
|
|
`;
|
|
|
|
function close(event) {
|
|
if (event) {
|
|
event.preventDefault();
|
|
event.stopPropagation();
|
|
}
|
|
emit('closeModal');
|
|
}
|
|
};
|