send/app/templates/uploadedFileList/index.js

13 lines
305 B
JavaScript
Raw Normal View History

2018-07-31 18:09:18 +00:00
const html = require('choo/html');
const file = require('../uploadedFile');
module.exports = function(files, state, emit) {
//const progressRatio = state.transfer ? state.transfer.progressRatio : 0;
return html`
<ul class="uploadedFiles">
${files.map(f => file(f, state, emit))}
</ul>
`;
};