import type { ReactNode } from "react";
import type { InitiativeDraft } from "@/components/applicant/initiative-draft/types";
import type { ContributionDraftShape } from "@/components/applicant/initiative-draft/contributionDraftTypes";
import { ApplicationFormDocxPreview } from "@/components/applicant/initiative-draft/ApplicationFormDocxPreview";

export type AdminApplicationFormDocxPreviewProps = {
  draft: InitiativeDraft;
  contribution: ContributionDraftShape;
  className?: string;
  caseId?: string;
  docxStaffFooter: ReactNode;
};

/**
 * Xem trước mẫu Word giống tab ứng viên, nhưng cho Ban quản trị (chỉ đọc): không có « Tải DOCX » / « Tải PDF ».
 * Hội đồng dùng {@link ApplicationFormDocxPreview} qua {@link ReviewSnapshotSections} (giữ hai nút tải).
 */
export function AdminApplicationFormDocxPreview({
  draft,
  contribution,
  className,
  caseId,
  docxStaffFooter,
}: AdminApplicationFormDocxPreviewProps) {
  return (
    <ApplicationFormDocxPreview
      draft={draft}
      contribution={contribution}
      className={className}
      caseId={caseId}
      onSaveAllDrafts={undefined}
      docxStaffFooter={docxStaffFooter}
      hideDocxPdfExportButtons
    />
  );
}
