diff --git a/src/components/Card.astro b/src/components/Card.astro index addd7d6..7aa75bc 100644 --- a/src/components/Card.astro +++ b/src/components/Card.astro @@ -1,6 +1,7 @@ --- const { frontmatter, streakCount = 1 } = Astro.props; const { birthDate, health, manifestations, date, name } = frontmatter; +const medicationTaken = health?.mental?.medication ?? false; // 1. CALCUL DU NIVEAU ET VARIABLES DE BASE const referenceDate = new Date(date); @@ -157,6 +158,11 @@ const autoLayer = [ status: hallucinations > 4 ? "alerte" : "calme", }, { label: "Stabilité", value: currentBiome.label, status: "info" }, + { + label: "Traitement", + value: medicationTaken ? "Pris" : "Absent", + status: medicationTaken ? "stable" : "critique", + }, ]; // LAYER MANUEL : Les leviers d'action et ressentis @@ -188,7 +194,16 @@ const manualLayer = [