"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 elements_1 = require("@joincivil/elements");
var PaymentsStyledComponents_1 = require("./PaymentsStyledComponents");
var PaymentsTextComponents_1 = require("./PaymentsTextComponents");
exports.PaymentsFormWrapper = function (props) {
    return (React.createElement(React.Fragment, null,
        React.createElement(PaymentsTextComponents_1.PaymentEditText, { handleEditPaymentType: props.handleEditPaymentType }),
        React.createElement(PaymentsStyledComponents_1.PaymentFormWrapperStyled, null,
            React.createElement(PaymentsStyledComponents_1.PaymentInfoFlex, null,
                React.createElement(PaymentsStyledComponents_1.PaymentTypeLabel, null, props.payWithText),
                props.showSecureIcon && (React.createElement(PaymentsStyledComponents_1.PaymentSecure, null,
                    "Secure transaction ",
                    React.createElement(elements_1.SecureLockIcon, null)))),
            React.createElement(PaymentsStyledComponents_1.PaymentNotice, null, props.paymentNoticeText),
            props.children)));
};
//# sourceMappingURL=PaymentsFormWrapper.js.map