HEX
Server: Apache
System: Linux webd003.cluster128.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: slyfwmm (169339)
PHP: 8.1.34
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/slyfwmm/adspray/wp-content/plugins/lazy-blocks/assets/components/base-control/index.js
// External Dependencies
import classnames from 'classnames/dedupe';

// Import CSS
import './editor.scss';

// The reason why we created this component is simple.
// Our controls support the HTML in the control `help` attributes
// but it conflicts with Gutenberg, since help is wrapped to <p> tag.
export default function BaseControl(props) {
	const { label, help, className, children, ...allProps } = props;

	return (
		<div
			{...allProps}
			className={classnames(
				'lazyblocks-component-base-control',
				className
			)}
		>
			{label ? (
				<div className="lazyblocks-component-base-control__label">
					{label}
				</div>
			) : null}
			{children}
			{help ? (
				<div className="lazyblocks-component-base-control__help">
					{help}
				</div>
			) : null}
		</div>
	);
}