mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
♻️ Organize some reusable components
This commit is contained in:
parent
c7b80b6cd5
commit
47294ca530
30 changed files with 152 additions and 141 deletions
|
@ -0,0 +1,11 @@
|
|||
import classNames from 'classnames';
|
||||
|
||||
const SettingsBlock = ( { className, children, separatorAndGap = true } ) => {
|
||||
const blockClassName = classNames( 'ppcp-r-settings-block', className, {
|
||||
'no-gap': ! separatorAndGap,
|
||||
} );
|
||||
|
||||
return <div className={ blockClassName }>{ children }</div>;
|
||||
};
|
||||
|
||||
export default SettingsBlock;
|
Loading…
Add table
Add a link
Reference in a new issue