12 lines
263 B
JavaScript
12 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>
|
|
`;
|
|
}
|
|
};
|