overleaf/services/web/app/src/Features/Email/EmailMessageHelper.js
Jessica Lawshe f0e9a37c7a Merge pull request #2982 from overleaf/jel-no-cta-emails-cleanup
Tidy "No CTA" emails and update footer color in all emails

GitOrigin-RevId: bf4d88400a6165b4b2ba3880374921dcda9a2cef
2020-07-17 02:07:30 +00:00

7 lines
160 B
JavaScript

function displayLink(text, url, isPlainText) {
return isPlainText ? `${text} (${url})` : `<a href="${url}">${text}</a>`
}
module.exports = {
displayLink
}