UNPKG

react-native-unit-components

Version:

Unit React Native components

21 lines (18 loc) 740 B
import { LISTENERS } from '../../scripts/html/bodyScript'; import { UNWirePaymentComponentProps } from './UNWirePaymentComponent'; export const getWirePaymentParams = (props: UNWirePaymentComponentProps) => { const accountIdParam = props.accountId ? `account-id="${props.accountId}"` : ''; return ` ${accountIdParam} 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} `; };