UNPKG

plurality-esm-wrapper

Version:

A React component for social connect popup.

19 lines (18 loc) 1.21 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const jsx_runtime_1 = require("react/jsx-runtime"); const antd_1 = require("antd"); require("./css/modalBackground.css"); const PluralityModal = ({ isOpen, showMask, closePlurality, frameUrl, style }) => { const handleOk = () => { closePlurality(); }; const handleCancel = () => { closePlurality(); }; return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)(antd_1.Modal, { visible: !isOpen, footer: null, centered: true, onOk: handleOk, onCancel: handleCancel, maskClosable: false, width: 460, mask: showMask, closable: showMask, bodyStyle: { height: "560px", padding: 0 }, style: { borderRadius: "20px", backgroundColor: "transparent" }, className: 'modalCustom', children: (0, jsx_runtime_1.jsx)("div", { className: "popup-container", children: (0, jsx_runtime_1.jsx)("div", { className: "popup-content", children: (0, jsx_runtime_1.jsx)("iframe", { title: "PluralityPopup", src: frameUrl, frameBorder: "0", id: "iframe", style: style, allow: "transparency" }) }) }) }) })); }; exports.default = PluralityModal;