"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var react_1 = __importDefault(require("react"));
exports.Safello = function (props) {
    var localizationConfig = props.localizationConfig, crypto = props.crypto, contractAddress = props.contractAddress, safelloConfig = props.safelloConfig;
    var url = exports.getSafelloUrl(localizationConfig, safelloConfig, crypto, contractAddress);
    return (react_1.default.createElement("iframe", { src: url, width: "500px", height: "650px", sandbox: "allow-same-origin allow-top-navigation allow-forms allow-scripts allow-popups", style: { border: 'none', maxWidth: '100%', display: 'block', marginLeft: 'auto', marginRight: 'auto' } }));
};
exports.getSafelloUrl = function (localizationConfig, safelloConfig, crypto, contractAddress) { return safelloConfig.baseAddress + "?" +
    ("appId=" + safelloConfig.appId) +
    '&border=true' +
    ("&address-helper=" + safelloConfig.addressHelper) +
    ("&lang=" + localizationConfig.language) +
    ("&country=" + localizationConfig.country) +
    ("&crypto=" + crypto) +
    ("&address=" + contractAddress); };
//# sourceMappingURL=Safello.js.map