const html = require('choo/html'); const userAccount = require('../../templates/userAccount'); const version = require('../../../package.json').version; const { browserName } = require('../../utils'); module.exports = function(state, emit) { const browser = browserName(); const feedbackUrl = `https://qsurvey.mozilla.com/s3/txp-firefox-send?ver=${version}&browser=${browser}`; const header = html`

Firefox Send

${userAccount(state, emit)}
`; // HACK // We only want to render this once because we // toggle the targets of the links with utils/openLinksInNewTab header.isSameNode = function(target) { return target && target.nodeName && target.nodeName === 'HEADER'; }; return header; };