git ssb

1+

Daan Patchwork / patchwork



Tree: 000777db8b0f37f6c1d99fc608e4395c87512348

Files: 000777db8b0f37f6c1d99fc608e4395c87512348 / 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