-
- {" "}
- {isCompleted?.message ||
- "This document has been signed by all Signers."}
-
-
-
-
{
- setIsCompleted((prev) => ({
- ...prev,
- isModal: false
- }));
- }}
- >
- Close
-
+ {isCompleted?.message ? (
+
{isCompleted?.message}
+ ) : (
+
+
+ Congratulations! 🎉 This document has been
+ successfully signed by all participants!
+
+
+ )}
+ {!isCompleted?.message && (
+
+
+ handleDownloadCertificate(
+ pdfDetails,
+ setIsDownloading
+ )
+ }
+ className="flex flex-row items-center shadow rounded-[3px] py-[3px] px-[11px] text-white font-[500] text-[13px] mr-[5px] bg-[#08bc66]"
+ >
+
+
+ Certificate
+
+
+
+ handleToPrint(e, pdfUrl, setIsDownloading)
+ }
+ type="button"
+ className="flex flex-row items-center shadow rounded-[3px] py-[3px] px-[11px] text-white font-[500] text-[13px] mr-[5px] bg-[#188ae2]"
+ >
+
+ Print
+
+
+ handleDownloadPdf(
+ pdfDetails,
+ pdfUrl,
+ setIsDownloading
+ )
+ }
+ >
+
+
+ Download
+
+
+
+ )}
+
+
+ {isDownloading === "pdf" && (
+