// PEP-186: «Попросить подписку у администратора» — agents stand on a limit (or a broken sign-in) // of the project's subscription; the owner or a member asks the superadmin to lend one. import { HandHelping } from "lucide-react"; import { getT } from "@/lib/i18n"; import { Hidden } from "@/components/cards"; import { Button } from "@/components/ui/button"; import { requestSubscriptionAction } from "@/app/(app)/actions"; export async function SubscriptionRequestButton({ projectId, offer, back, name, size = "sm", ahead }: { projectId: number; offer: "can" | "sent"; back: string; name?: string; size?: "xs" | "sm"; /** PEP-206: may be asked while the agents still work. */ ahead?: boolean }) { const t = await getT(); if (offer === "sent") { return ( {name ? `${name}: ` : ""} {t("Запрос отправлен — ждём ответа администратора")} ); } return (
); }