import React from 'react';
export var Safello = function (props) {
    var localizationConfig = props.localizationConfig, crypto = props.crypto, contractAddress = props.contractAddress, safelloConfig = props.safelloConfig;
    var url = getSafelloUrl(localizationConfig, safelloConfig, crypto, contractAddress);
    return (React.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' } }));
};
export var 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