// profile.jsx — Профиль: тариф, «оплачено до», переход в PRO, ответы анкеты, выход. function Profile({ nav }) { const { user, member, profile } = ME(); const cfg = CFG(); const active = member.state === 'active'; const goal = profile && (profile.goal === 'other' ? profile.goal_custom : ((cfg.goals || []).find(g => g.id === profile.goal) || {}).title); const level = profile && (cfg.levels || []).find(l => l.id === profile.ai_level); const role = profile && (profile.role === 'other' ? profile.role_custom || 'Другое' : ((cfg.roles || []).find(r => r.id === profile.role) || {}).title); const share = profile && [...(profile.share || []).map(id => ((cfg.share || []).find(s => s.id === id) || {}).title).filter(Boolean), profile.share_custom].filter(Boolean); const Row = ({ k, v }) => (
{user.email} · вход через Hakku ID
Анкета не заполнена — заполните, чтобы получить подборку материалов под цель.
)}