fox-send/app/templates/fileList/index.js

13 lines
263 B
JavaScript
Raw Normal View History

const html = require('choo/html');
const file = require('../file');
2018-07-31 18:09:18 +00:00
module.exports = function(state) {
if (state.storage.files.length) {
2018-02-16 20:56:53 +00:00
return html`
2018-07-31 18:09:18 +00:00
<ul class="fileList">
${state.storage.files.map(f => file(f, state))}
</ul>
`;
}
};