// PEP-174: a project on pause — the plaque on the project page, the «Поставить на паузу» / // «Продолжить» buttons (page and «⋯ Настройки проекта») and the mark on project cards. import { Pause, Play } from "lucide-react"; import { pauseProjectAction, resumeProjectAction } from "@/app/(app)/actions"; import { LocalTime } from "@/components/LocalTime"; import { PendingButton } from "@/components/PendingButton"; import { Badge } from "@/components/ui/badge"; import { getT } from "@/lib/i18n"; /** Pause or continue; pausing asks once more in one phrase (native
: no client JS). */ export async function PauseControl({ projectId, back, paused, popover }: { projectId: number; back: string; paused: boolean; popover?: boolean }) { const t = await getT(); if (paused) { return (
{t("Продолжить")}
); } return (
{t("Поставить на паузу")}

{t("Агенты остановятся, уведомлений не будет, пока вы не нажмёте «Продолжить».")}

{t("Да, поставить на паузу")}
); } /** The plaque on the project page while it is on pause. */ export async function PauseBanner({ projectId, back, since }: { projectId: number; back: string; since: number }) { const t = await getT(); return (
{t("Проект на паузе с")} . {" "} {t("Агенты не работают, уведомлений нет. Нажмите «Продолжить», чтобы агенты вернулись к работе.")}
); } /** Mark on a project card in lists and on the home page. */ export async function PausedBadge() { const t = await getT(); return ( {t("На паузе")} ); }