git ssb

16+

Dominic / patchbay



Tree: 8cbcf91233c73cb8de180f682d84a828fdbde387

Files: 8cbcf91233c73cb8de180f682d84a828fdbde387 / modules / avatar-profile.js

511 bytesRaw
1var h = require('hyperscript')
2var plugs = require('../plugs')
3
4
5var avatar_image = plugs.first(exports.avatar_image = [])
6var avatar_name = plugs.first(exports.avatar_name = [])
7var avatar_action = plugs.map(exports.avatar_action = [])
8var avatar_edit = plugs.first(exports.avatar_edit = [])
9
10exports.avatar_profile = function (id) {
11 return avatar_edit(id)
12
13 return h('div.row.profile',
14 avatar_image(id),
15 h('div.profile__info',
16 h('strong', avatar_name(id)),
17 avatar_action(id))
18 )
19}
20

Built with git-ssb-web