UNPKG

@adyen/adyen-web

Version:

[![npm](https://img.shields.io/npm/v/@adyen/adyen-web.svg)](https://www.npmjs.com/package/@adyen/adyen-web)

3 lines (2 loc) 510 B
const u="/ ",l=(u,l)=>(null==l?void 0:l.value)&&(null==l?void 0:l.currency)?u.amount(l.value,l.currency,{currencyDisplay:l.currencyDisplay||"symbol"}):"",n=(u,n)=>`${u.get("payButton")} ${l(u,n)}`,r=(u,l)=>{const n=l&&(null==l?void 0:l.value)&&(null==l?void 0:l.currency)?u.amount(l.value,l.currency,{currencyDisplay:l.currencyDisplay||"symbol"}):"";return`${n.length?"/ ":""}${n}`};export{u as PAY_BTN_DIVIDER,l as amountLabel,n as payAmountLabel,r as secondaryAmountLabel}; //# sourceMappingURL=utils.js.map