UNPKG
@atlas-kitchen/adyen-web
Version:
latest (6.15.0)
6.15.0
docs.adyen.com/checkout
atlas-kitchen/adyen-web
@atlas-kitchen/adyen-web
/
dist
/
es
/
components
/
PayPal
/
utils
/
get-paypal-styles.js
3 lines
(2 loc)
•
263 B
JavaScript
View Raw
1
2
3
import
{
SUPPORTED_COLORS_FOR_CREDIT
as
o}
from
"../config.js"
;
const
c
=(
c,e={}
)=>
"paypal"
===c?{...e}:
Object
.
keys
(e).
reduce
((
(
c,r
)=>
{
const
t=e[r];
return
(
"color"
!==r||o.
includes
(t))&&(c[r]=t),c}),{});
export
{c
as
getStyle};
//# sourceMappingURL=get-paypal-styles.js.map