{t("dashboard.reorder.title")}
{t("dashboard.reorder.noMeds")}
; } // Count medications with low stock (based on lowStockDays setting), deduplicated by name const lowStockMap = new Map{t("dashboard.reorder.allGood")}
; } // Some meds are low - show simple text with clickable names and days left return ({t("dashboard.reorder.lowWarningPrefix")}{" "} {lowStockMeds.map((c, idx) => { const med = meds.find((m) => m.name === c.name); const status = getStockStatus(c.daysLeft, c.medsLeft, stockThresholds); const textClass = status.className === "danger" ? "danger-text" : status.className === "warning" ? "warning-text" : ""; return ( {idx > 0 && ", "} med && openMedDetail(med)}> {c.name} {" "} ({t("dashboard.reminders.daysLeft", { count: c.daysLeft ?? 0, days: c.daysLeft ?? 0 })}) ); })}{" "} {t("dashboard.reorder.lowWarningSuffix", { count: lowStockCount })}
); })()}