react-native-unit-components
Version:
Unit React Native components
21 lines • 809 B
JavaScript
import { LISTENERS } from '../../scripts/html/bodyScript';
export const getWirePaymentParams = props => {
const accountIdParam = props.accountId ? `account-id="${props.accountId}"` : '';
const feeParam = props.fee ? `fee="${props.fee}"` : '';
return `
${accountIdParam}
customer-token="${props.customerToken}"
${feeParam}
is-auto-focus="${props.isAutoFocus || false}"
initial-stage-back-button="${props.initialStageBackButton ?? false}"
final-stage-done-button="${props.finalStageDoneButton ?? false}"
`;
};
export const getWirePaymentScript = () => {
return `
${LISTENERS.unitPaymentCreated}
${LISTENERS.unitPaymentInitialStageBackButtonClicked}
${LISTENERS.unitPaymentFinalStageDoneButtonClicked}
`;
};
//# sourceMappingURL=UNWirePaymentComponent.utils.js.map