mirror of
https://github.com/OpenSignLabs/OpenSign.git
synced 2026-08-20 06:35:54 +02:00
72 lines
1.8 KiB
JavaScript
72 lines
1.8 KiB
JavaScript
import React from "react";
|
|
import "../../css/customModal.css";
|
|
import "../../css/signature.css";
|
|
|
|
function CustomModal({
|
|
show,
|
|
headMsg,
|
|
bodyMssg,
|
|
footerMessage,
|
|
declineDoc,
|
|
setIsDecline,
|
|
containerWH
|
|
}) {
|
|
const isMobile = window.innerWidth < 767;
|
|
return (
|
|
show && (
|
|
<div
|
|
className="parentDiv"
|
|
style={{
|
|
width: containerWH && containerWH.width,
|
|
height: isMobile ? "100%" : containerWH && containerWH.height
|
|
}}
|
|
>
|
|
<div className="childDiv">
|
|
<div className="modalHeadDiv bg-danger">{headMsg && headMsg}</div>
|
|
<div className="modalBodyDIv">
|
|
<p className="pTagBody">{bodyMssg && bodyMssg}</p>
|
|
|
|
{footerMessage && (
|
|
<>
|
|
<div
|
|
style={{
|
|
height: "1px",
|
|
backgroundColor: "#9f9f9f",
|
|
width: "100%",
|
|
marginTop: "15px",
|
|
marginBottom: "15px"
|
|
}}
|
|
></div>
|
|
<div className="modalFooterDiv">
|
|
<button
|
|
style={{
|
|
background: "#de4337"
|
|
}}
|
|
type="button"
|
|
className="finishBtn"
|
|
onClick={() => declineDoc()}
|
|
>
|
|
Yes
|
|
</button>
|
|
<button
|
|
style={{
|
|
color: "black"
|
|
}}
|
|
type="button"
|
|
className="finishBtn"
|
|
onClick={() => setIsDecline({ isDeclined: false })}
|
|
>
|
|
Close
|
|
</button>
|
|
</div>
|
|
</>
|
|
)}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
)
|
|
);
|
|
}
|
|
|
|
export default CustomModal;
|