mirror of
https://github.com/timvisee/send.git
synced 2026-03-05 13:39:54 -05: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>
|
|
`;
|
|
}
|
|
};
|