UNPKG

paypal-checkout

Version:

PayPal Checkout components, for integrating checkout products.

22 lines (19 loc) 658 B
/* @flow */ import { pageStyle } from './page'; import { buttonStyle } from './button'; import { layoutStyle } from './layout'; import { brandingStyle } from './branding'; import { labelStyle } from './labels'; import { buttonResponsiveStyle } from './responsive'; import { buttonColorStyle } from './color'; export function componentStyle({ height, cardNumber } : { height? : ?number, cardNumber? : number }) : string { return ` ${ pageStyle } ${ buttonStyle } ${ buttonColorStyle } ${ layoutStyle } ${ brandingStyle } ${ labelStyle } ${ buttonResponsiveStyle({ height, cardNumber }) } `; }