const h = require('mutant/h')
const nest = require('depnest')

exports.gives = nest('message.html.meta')

exports.create = (api) => {
  return nest('message.html.meta', function channel (msg) {
    const { channel } = msg.value.content
    if (channel) return h('a.channel', {href: `#${channel}`}, [`#${channel}`])
  })
}

const h = require('mutant/h')
const nest = require('depnest')

exports.gives = nest('message.html.meta')

exports.create = (api) => {
  return nest('message.html.meta', function renderChannel (msg) {
    const { channel } = msg.value.content
    if (channel) return h('a.channel', {href: `#${channel}`}, [`#${channel}`])
  })
}

rename `channel` to `renderChannel`, so no const conflict