fox-send/app/templates/signupPromo/index.js

17 lines
480 B
JavaScript
Raw Normal View History

2018-07-31 18:09:18 +00:00
const html = require('choo/html');
module.exports = function(state) {
2018-09-14 20:58:19 +00:00
if (state.user.loggedIn || !state.capabilities.account) {
2018-08-31 22:15:25 +00:00
return null;
}
2018-07-31 18:09:18 +00:00
return html`
<a href="/signin" class="signupPromo">
2018-07-31 18:09:18 +00:00
<div class="signupPromo__title">${state.translate('signInPromoText')}</div>
<div class="signupPromo__info">${state.translate('signInExplanation')}</div>
<div class="link signupPromo__link">${state.translate(
'signInLearnMore'
)}</div>
</a>
2018-07-31 18:09:18 +00:00
`;
};