git ssb

1+

Daan Patchwork / patchwork



Tree: 4d9f238ff73f7136cd292da88f06c17fe1a8c445

Files: 4d9f238ff73f7136cd292da88f06c17fe1a8c445 / 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