const html = require('choo/html'); const file = require('./file'); module.exports = function(state, emit) { let table = ''; if (state.storage.files.length) { table = html` ${state.storage.files.map(f => file(f, state, emit))}
${state.translate('uploadedFile')} ${state.translate( 'copyFileList' )} ${state.translate('expiryFileList')} ${state.translate( 'deleteFileList' )}
`; } return html`
${table}
`; };