import Link from "next/link"; import type { AgentTaskRow } from "@peppa/core"; import { Badge } from "@/components/ui/badge"; import { getT } from "@/lib/i18n"; /** * PEP-197: for the superadmin — per project, tasks of people and of agents, how many of the * agents' wait for a decision, and where agents made more than people. Money only in «Инженер». */ export async function AgentTaskSummary({ rows, engineer }: { rows: AgentTaskRow[]; engineer: boolean }) { const t = await getT(); return (
{/* glossary-ignore: сумма показана только в режиме «Инженер» */} {engineer && } {rows.map((r) => ( {engineer && } ))}
{t("Проект")} {t("Люди")} {t("Фабрика")} {t("Ждут решения")}{t("За неделю, $")}
{r.name} {r.agentsMoreThanHuman && {t("фабрика завела больше")}} {r.human} {r.agents} {r.proposed}{r.agentCostWeek.toFixed(2)}
); }