Files: 4bcfc9f6bc102b97669476fbfb3c7cf0457647ee / modules / avatar-profile.js
430 bytesRaw
1 | var h = require('hyperscript') |
2 | var plugs = require('../plugs') |
3 | |
4 | |
5 | var avatar_image = plugs.first(exports.avatar_image = []) |
6 | var avatar_name = plugs.first(exports.avatar_name = []) |
7 | var avatar_action = plugs.map(exports.avatar_action = []) |
8 | |
9 | exports.avatar_profile = function (id) { |
10 | |
11 | return h('div.row.profile', |
12 | avatar_image(id), |
13 | h('div.profile__info', |
14 | h('strong', avatar_name(id)), |
15 | avatar_action(id)) |
16 | ) |
17 | } |
18 |
Built with git-ssb-web