"use client";
import { useTranslation } from "react-i18next";

/** A review request remains distinct from the disabled direct-delete action. */
export default function DeletionReviewAction({ pending = false }: {
  id: string; type: "volunteer" | "learnserve"; started: boolean; paidLocked?: boolean;
  /** Server `can_request_deletion`; false once a request is already pending. */
  requestable?: boolean;
  /** Server `deletion_status === "pending"`: say so instead of showing nothing. */
  pending?: boolean; onChanged: () => void;
}) {
  const { t } = useTranslation();
  if (pending) return <p role="status" className="max-w-48 text-center text-xs leading-relaxed text-primary-5">{t("COMMON.DELETION_ALREADY_PENDING")}</p>;
  return null;
}
