const { $, showFlash } = require("./helpers"); function init(ctx) { $("btn-receive-copy").addEventListener("click", () => { const addr = $("receive-address").textContent; if (addr) { navigator.clipboard.writeText(addr); showFlash("Copied!"); } }); $("btn-receive-back").addEventListener("click", ctx.showAddressDetail); } module.exports = { init };