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