import type { WorkLine as Line } from "@peppa/core"; import { cn } from "@/lib/utils"; import { getT } from "@/lib/i18n"; /** * PEP-182: «Делается: 4 · В очереди: 3» — how many tasks agents work on now and how many wait * for a free agent. No subscriptions and no capacity numbers: that is the superadmin's page. */ export async function WorkLine({ line, className }: { line: Line; className?: string }) { const t = await getT(); if (!line.doing && !line.queued) return null; return (
{t("Делается: {n}", { n: line.doing })} {line.queued > 0 && ( <> {" · "} {t("В очереди: {n}", { n: line.queued })} > )}
); }