{t('dashboard.reorder.title')}
{t('dashboard.reorder.noMeds')}
; } // Count medications with "Low" stock status (based on lowStockDays setting) const lowStockCount = coverage.all.filter(c => { if (c.medsLeft <= 0) return true; // out of stock if (c.daysLeft === null) return false; // no schedule return c.daysLeft < settings.lowStockDays; }).length; if (coverage.low.length === 0) { // No critical meds (โค3 days) if (lowStockCount === 0) { // All good - everything is Normal or High return{t('dashboard.reorder.allGood')}
; } else { // Some meds are Low but not critical return{t('dashboard.reorder.lowWarning', { count: lowStockCount })}
; } } return ( <>