import React from 'react'; import './AlertsView.css'; const alerts = [ { id: 1, type: 'reminder', title: 'Recordatorio: Comprar Paracetamol', detail: 'Quedan 2 cajas', color: 'primary', icon: 'bell', actions: [{ label: 'Ver Detalles', variant: 'secondary' }], }, { id: 2, type: 'availability', title: 'Disponibilidad: Aspirina', detail: 'Ya disponible en Farmacia Sol', color: 'secondary', icon: 'store', actions: [{ label: 'Ir a Farmacia', variant: 'primary' }], }, { id: 3, type: 'dose', title: 'Próxima Toma', detail: '12:00 PM', color: 'tertiary', icon: 'schedule', actions: [{ label: 'Confirmar Toma', variant: 'tertiary' }], }, ]; const iconMap = { bell: ( ), store: ( ), schedule: ( ), }; function AlertsView({ onBack }) { return (

Mis Avisos

Mantente al día con tus medicamentos.

{alerts.map((alert) => (
{iconMap[alert.icon]}

{alert.title}

{alert.detail}
{alert.actions.map((action, i) => ( ))}
))}
); } export default AlertsView;