git ssb

1+

Daan Patchwork / patchwork



Tree: d410e696e202f0fa3b384dfa76ad876acb28868b

Files: d410e696e202f0fa3b384dfa76ad876acb28868b / lib / channel / html / link.js

259 bytesRaw
1const h = require('mutant/h')
2const normalizeChannel = require('ssb-ref').normalizeChannel
3
4module.exports = function (channel, text = null) {
5 const ref = `#${normalizeChannel(channel)}`
6 return h('a ChannelLink', { href: ref, title: ref }, text || ref)
7}
8

Built with git-ssb-web