UNPKG

plurality-esm-wrapper

Version:

A React component for social connect popup.

17 lines (16 loc) 1.03 kB
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime"; import { Modal } from 'antd'; import './css/modalBackground.css'; const PluralityModal = ({ isOpen, showMask, closePlurality, frameUrl, style }) => { const handleOk = () => { closePlurality(); }; const handleCancel = () => { closePlurality(); }; return (_jsx(_Fragment, { children: _jsx(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: _jsx("div", { className: "popup-container", children: _jsx("div", { className: "popup-content", children: _jsx("iframe", { title: "PluralityPopup", src: frameUrl, frameBorder: "0", id: "iframe", style: style, allow: "transparency" }) }) }) }) })); }; export default PluralityModal;