import React from 'react'; import { IonIcon } from '@ionic/react'; import { chevronForwardOutline, timeOutline, flashOutline, wifiOutline, medkitOutline, } from 'ionicons/icons'; interface CareAlertPillProps { id: string; type: string; title: string; severity: 'warning' | 'neutral'; onClick: (id: string) => void; } const CareAlertPill: React.FC = ({ id, type, title, severity, onClick, }) => { const getIconForType = () => { switch (type) { case 'electricity_low': return flashOutline; case 'airtime_expiring': return wifiOutline; case 'medication_due': return medkitOutline; default: return timeOutline; } }; const getColors = () => { if (severity === 'warning') { return { bg: 'rgba(245,158,11,0.08)', icon: '#f59e0b', text: '#111827' }; } return { bg: '#ffffff', icon: '#6d28d9', text: '#111827' }; }; const colors = getColors(); return ( ); }; export default CareAlertPill;