mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
15 lines
315 B
JavaScript
15 lines
315 B
JavaScript
const Container = ( { isCard = true, page, children } ) => {
|
|
let className = 'ppcp-r-container';
|
|
|
|
if ( isCard ) {
|
|
className += ' ppcp-r-container--card';
|
|
}
|
|
|
|
if ( page ) {
|
|
className += ` ppcp-r-container--${ page }`;
|
|
}
|
|
|
|
return <div className={ className }>{ children }</div>;
|
|
};
|
|
|
|
export default Container;
|