function description(item) {
return (
item.description ||
item.label ||
(item.destination
? html`paid to <a href="https://ln.bigsun.xyz/node/${
item.destination
}" target="_blank">${
node_map.has(item.destination)
? node_map.get(item.destination).alias
: item.destination.slice(0, 4) + '…' + item.destination.slice(-4)
}</a>`
: null) ||
(item.channels
? html`routed:
<a href="https://ln.bigsun.xyz/channel/${
item.channels[0]
}" target="_blank">${
channel_map.has(item.channels[0])
? channel_map.get(item.channels[0]).peer.name
: item.channels[0]
}</a>
=>
<a href="https://ln.bigsun.xyz/channel/${item.channels[1]}">${
channel_map.has(item.channels[1])
? channel_map.get(item.channels[1]).peer.name
: item.channels[1]
}</a>`
: null)
);
}