const html = require('choo/html'); /* Possible strings for l10n shareLinkDescription = Share the link to your file: shareLinkButton = Share link shareMessage = Download "{ $name }" with { -send-brand }: simple, safe file sharing */ module.exports = function(name, url) { return function(state, emit, close) { return html`

${state.translate('notifyUploadEncryptDone')}

Share the link to your file:
${name}

`; async function share(event) { event.stopPropagation(); try { await navigator.share({ title: state.translate('-send-brand'), text: `Download "${name}" with Firefox Send: simple, safe file sharing`, //state.translate('shareMessage', { name }), url }); } catch (e) { if (e.code === e.ABORT_ERR) { return; } console.error(e); } close(); } }; };