mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
16 lines
370 B
JavaScript
16 lines
370 B
JavaScript
const SettingsBlock = ( { className, components = [], children } ) => {
|
|
const blockClassName = [ 'ppcp-r-settings-block', className ].filter(
|
|
Boolean
|
|
);
|
|
|
|
return (
|
|
<div className={ blockClassName.join( ' ' ) }>
|
|
{ children ||
|
|
components.map( ( Component, index ) => (
|
|
<Component key={ index } />
|
|
) ) }
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default SettingsBlock;
|