mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-08 23:18:39 +03:00
13 lines
263 B
JavaScript
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>
|
|
`;
|
|
}
|
|
};
|