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

19 lines
491 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`
<div class="signupPromo">
<div class="signupPromo__title">${state.translate('signInPromoText')}</div>
<div class="signupPromo__info">${state.translate('signInExplanation')}</div>
<a href="/signin"
class="link signupPromo__link"
>
${state.translate('signInLearnMore')}
</a>
</div>
`;
};