drop.chapril.org-firefoxsend/app/templates/fileList/index.js
2018-08-03 16:10:00 -07:00

13 lines
263 B
JavaScript

const html = require('choo/html');
const file = require('../file');
module.exports = function(state) {
if (state.storage.files.length) {
return html`
<ul class="fileList">
${state.storage.files.map(f => file(f, state))}
</ul>
`;
}
};