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-10-10 01:17:40 +00:00
|
|
|
|
2018-07-31 18:09:18 +00:00
|
|
|
return html`
|
2018-09-24 19:01:39 +00:00
|
|
|
<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>
|
2018-09-24 19:01:39 +00:00
|
|
|
</a>
|
2018-07-31 18:09:18 +00:00
|
|
|
`;
|
|
|
|
};
|