const html = require('choo/html'); const assets = require('../../../common/assets'); module.exports = function(name, hasPassword) { let type = ''; if (name) { type = name.split('.').pop(); } const lockClass = hasPassword ? 'fileIcon__lock--visible' : ''; return html`