"use strict";
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
    result["default"] = mod;
    return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
var React = __importStar(require("react"));
var PaymentsStyledComponents_1 = require("./PaymentsStyledComponents");
var icons_1 = require("../icons");
var styleConstants_1 = require("../styleConstants");
exports.PaymentsModal = function (props) {
    var maxHeight = window.innerHeight - 200;
    return (React.createElement(React.Fragment, null,
        React.createElement(PaymentsStyledComponents_1.PaymentFullscreenModal, { open: props.open },
            React.createElement(PaymentsStyledComponents_1.PaymentModalContain, { maxHeight: maxHeight, "data-iframe-height": true },
                props.handleClose && (React.createElement(PaymentsStyledComponents_1.PaymentModalCloseBtn, { onClick: function () { return props.handleClose && props.handleClose(); } },
                    React.createElement(icons_1.CloseXIcon, { color: styleConstants_1.colors.accent.CIVIL_GRAY_2, width: 32, height: 32 }))),
                props.children))));
};
//# sourceMappingURL=PaymentsModal.js.map