/** * ConseilNclcCallout — Sprint 3.6b. * * Section "Plan d'action NCLC" : écart au NCLC cible + action prioritaire. * Visible pour tous les plans. * * Règle L : tokens Direction H exclusivement. */ import ReactMarkdown from 'react-markdown' import { Card } from '@/shared/ui/Card' import type { ConseilNclc, NclcCible } from '@/entities/report/types' interface Props { conseil: ConseilNclc nclc: number nclcCible: NclcCible } export function ConseilNclcCallout({ conseil, nclc, nclcCible }: Props) { // PATCH TEMPORAIRE — à retirer quand FTD-40 (fix prompt backend) est résolu. // Le prompt maître DeepSeek génère un message d'encouragement vers `nclcCible` // même quand `nclc > nclcCible` ; on substitue alors un texte cohérent. const depasse = nclc > nclcCible return (

Plan d'action NCLC

Objectif

{conseil.nclc_cible}

Écart

{conseil.ecart}

Action prioritaire

{depasse ? (

Excellent travail — vous avez dépassé votre objectif. Continuez sur cette lancée pour viser NCLC {nclc + 1} !

) : ( {conseil.action_prioritaire} )}
) }