react-native-unit-components
Version:
Unit React Native components
30 lines (29 loc) • 1.18 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getFundAccountPaymentScript = exports.getFundAccountPaymentParams = void 0;
var _bodyScript = require("../../scripts/html/bodyScript");
const getFundAccountPaymentParams = props => {
const accountIdParam = props.accountId ? `account-id="${props.accountId}"` : '';
const feeParam = props.fee ? `fee="${props.fee}"` : '';
return `
customer-token="${props.customerToken}"
${accountIdParam}
${feeParam}
is-auto-focus="${props.isAutoFocus ?? false}"
initial-stage-back-button="${props.initialStageBackButton ?? false}"
final-stage-done-button="${props.finalStageDoneButton ?? false}"
style="height: 100%"
`;
};
exports.getFundAccountPaymentParams = getFundAccountPaymentParams;
const getFundAccountPaymentScript = () => {
return `
${_bodyScript.LISTENERS.unitPaymentCreated}
${_bodyScript.LISTENERS.unitPaymentInitialStageBackButtonClicked}
${_bodyScript.LISTENERS.unitPaymentFinalStageDoneButtonClicked}
`;
};
exports.getFundAccountPaymentScript = getFundAccountPaymentScript;
//# sourceMappingURL=UNFundAccountPaymentComponent.utils.js.map