import { auth } from "../lib/auth";
import { ownerFilter } from "../lib/authz";
import { getPipeline, getSystemUsers } from "../lib/queries";
import LoginPrompt from "../components/LoginPrompt";
import OwnerControl from "../components/OwnerControl";
import ErrorNotice from "../components/ErrorNotice";
import { DYN, ACT_COLOR, money, money2 } from "../lib/constants";
import { EJECUTIVOS_VENTA } from "../lib/derive";
export const dynamic = "force-dynamic";
export default async function TuberiaPage({ searchParams }) {
const session = await auth();
if (!session?.email) return
No hay oportunidades activas para este filtro.
) : (| Cliente | Oportunidad | Seg. | Plan cierre | Línea de Negocio | Fase actual | Días en fase | Actividad | {!scope.locked &&Ejecutivo | }MRR est. | Forecast | Cierre est. |
|---|---|---|---|---|---|---|---|---|---|---|---|
| {o.cliente || "—"} | {o.name} | {o.segmento === "Cartera Activa" ? "CA" : "CN"} | {(o.plan || "").replace(" - ", " ")} | {o.linea || "—"} | {o.faseActual || "—"} | {o.diasEnFase == null ? "—" : o.diasEnFase} | ● {o.actividad} | {!scope.locked &&{o.owner} | }{money2(o.est)} | {money2(o.fc)} | {o.close || "—"} |