♻️ Organize some reusable components

This commit is contained in:
Philipp Stracker 2025-01-21 18:57:36 +01:00
parent c7b80b6cd5
commit 47294ca530
No known key found for this signature in database
30 changed files with 152 additions and 141 deletions

View file

@ -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;