/* globals LIMITS */ const html = require('choo/html'); const assets = require('../../../common/assets'); const title = require('../../templates/title'); const bytes = require('../../utils').bytes; module.exports = function(state, emit) { return html`
${title(state)}
${state.translate('accountBenefitTitle')}
${state.translate('signInContinueMessage')}
`; function submitEmail(event) { event.preventDefault(); const el = document.getElementById('email-input'); const email = el.value; if (email) { // just check if it's the right shape const a = email.split('@'); if (a.length === 2 && a.every(s => s.length > 0)) { return emit('login', email); } } el.value = ''; } };