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 (
| {t("Проект")} | {t("Люди")} | {t("Фабрика")} | {t("Ждут решения")} | {/* glossary-ignore: сумма показана только в режиме «Инженер» */} {engineer &&{t("За неделю, $")} | }
|---|---|---|---|---|
|
{r.name} {r.agentsMoreThanHuman && |
{r.human} | {r.agents} | {r.proposed} | {engineer &&{r.agentCostWeek.toFixed(2)} | }