"use client"; import { AdminNav } from "@/components/admin/admin-nav"; import { ManualPaymentForm, PaymentStatusForm } from "@/components/admin/admin-actions"; import { Card } from "@/components/ui/card"; import { useLang } from "@/lib/use-lang"; import { useT } from "@/lib/i18n"; type UserOption = { id: string; email: string }; type PaymentRow = { id: string; userEmail: string; actorEmail: string | null; amountLabel: string; provider: string; creditGranted: number; externalId: string | null; createdLabel: string; status: string; }; export function AdminPaymentsClient({ users, payments }: { users: UserOption[]; payments: PaymentRow[] }) { const [lang] = useLang(); const t = useT(); void lang; return (
{t("adminPayments.subtitle")}
{t("adminPayments.atomicNote")}
| {t("adminPayments.user")} | {t("adminPayments.amount")} | {t("adminPayments.provider")} | {t("adminPayments.credit")} | {t("adminPayments.reference")} | {t("adminPayments.date")} | {t("adminPayments.status")} |
|---|---|---|---|---|---|---|
| {payment.userEmail} {t("adminPayments.adminLabel")}: {payment.actorEmail || t("adminPayments.system")} | {payment.amountLabel} | {payment.provider} | {payment.creditGranted} | {payment.externalId || "—"} | {payment.createdLabel} |