import { Button } from "@/components/ui/button";
import { EvidenceVaultLinkButton } from "@/components/evidence/EvidenceVaultLinkButton";

export type AdminEvaluationFormActionsProps = {
  caseId: string;
  applicationId: string;
  onReject: () => void;
  onApprove: () => void;
};

/**
 * Hành động Hội đồng trên Phiếu đánh giá: từ chối, mở kho minh chứng, duyệt.
 */
export function AdminEvaluationFormActions({
  caseId,
  applicationId,
  onReject,
  onApprove,
}: AdminEvaluationFormActionsProps) {
  return (
    <div className="flex flex-wrap items-center justify-end gap-2">
      <Button type="button" variant="outline" className="border-destructive/50 text-destructive hover:bg-destructive/10" onClick={onReject}>
        Từ chối
      </Button>
      <EvidenceVaultLinkButton caseId={caseId} applicationId={applicationId} />
      <Button type="button" onClick={onApprove}>
        Duyệt
      </Button>
    </div>
  );
}
