import { DYN, ACT_COLOR, money2 } from "../../lib/constants"; import { cierreVencido } from "../../lib/derive"; // Tabla del informe individual — puerto de repRow()/repTable() (App Informe/assets/js/modals.js). export default function RepTable({ arr }) { if (!arr.length) return

Ninguna oportunidad en esta categoría — bien ahí.

; const sorted = [...arr].sort((a, b) => b.est - a.est); return (
{sorted.map((o) => ( ))}
Cliente Oportunidad Plan cierre Fase actual Actividad MRR est. Cierre est.
{o.cliente || "—"} {o.name} {(o.plan || "").replace(" - ", " ")} {o.faseActual || "—"} ● {o.actividad} {money2(o.est)} {o.close || "—"} {cierreVencido(o) ? " ⚠" : ""}
); }