mirror of
https://gitlab.com/timvisee/send.git
synced 2024-11-10 13:13:00 +01:00
14 lines
317 B
JavaScript
14 lines
317 B
JavaScript
const html = require('choo/html');
|
|
|
|
module.exports = function(state, emit) {
|
|
return html`
|
|
<button class="btn btn--download"
|
|
onclick=${download}>${state.translate('downloadButtonLabel')}
|
|
</button>`;
|
|
|
|
function download(event) {
|
|
event.preventDefault();
|
|
emit('download', state.fileInfo);
|
|
}
|
|
};
|