git ssb

1+

Daan Patchwork / patchwork



Tree: 1e0d83b096ae1e434e0decc1cb3af6cec68ec72a

Files: 1e0d83b096ae1e434e0decc1cb3af6cec68ec72a / 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