woocommerce-paypal-payments/modules/ppcp-settings/resources/js/Components/ReusableComponents/Container.js
2024-10-31 14:44:45 +01:00

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;