send/app/templates/signupPromo/index.js
2018-11-01 10:43:14 -07:00

14 lines
385 B
JavaScript

const html = require('choo/html');
module.exports = function(state) {
if (state.user.loggedIn || !state.capabilities.account) {
return null;
}
return html`
<a href="/signin" class="signupPromo">
<div class="signupPromo__title">${state.translate('signInPromoText')}</div>
<div class="signupPromo__info">${state.translate('signInExplanation')}</div>
</a>
`;
};