// vita-notify2.jsx — Lock screen ritual, "Hoy con Vita" center, notification settings
// ── Lock screen: the morning ritual ─────────────────────────────
function LockScreen({ t, persona, profile, notifs, onUnlock, onAction }) {
const n = (profile.nombre || '').split(' ')[0];
const now = new Date();
const hh = now.getHours();
const greeting = hh < 12 ? 'Buenos días' : hh < 19 ? 'Buenas tardes' : 'Buenas noches';
// show the morning cluster (first 3-4)
const shown = notifs.slice(0, 4);
return (
{/* clock */}
{Icon.lock({ s: 13, c: t.dark ? 'rgba(255,255,255,0.7)' : 'rgba(10,26,51,0.6)' })} {now.toLocaleDateString('es-CO', { weekday: 'long', day: 'numeric', month: 'long' })}
{String(hh % 12 || 12).padStart(2, '0')}:{String(now.getMinutes()).padStart(2, '0')}
{/* Vita presence greeting */}
{greeting}, {n}
{/* notification stack */}
VITA TE ACOMPAÑA HOY
{shown.map((notif, i) => (
))}
{/* unlock hint */}
);
}
// ── "Hoy con Vita" — notification center ────────────────────────
function NotificationCenter({ t, persona, profile, notifs, onAction, onBack, onSettings, onSimulate, onLockPreview }) {
const accent = persona.accent;
const byBloque = { 'mañana': [], 'tarde': [], 'noche': [] };
notifs.forEach(nf => { (byBloque[nf.bloque] || byBloque['mañana']).push(nf); });
const bloqueMeta = { 'mañana': { label: 'Mañana', icon: 'sunrise' }, 'tarde': { label: 'Tarde', icon: 'sundial' }, 'noche': { label: 'Noche', icon: 'moon' } };
return (