Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const Extensions = (props) => {
const { children, layoutConfig } = props;
const isCompactSize = Utils.helpers.isSizeCompact(layoutConfig.size);
let containerProps = { className: cx('container') };
if (isCompactSize) {
containerProps = {
className: cx('container-compact'),
};
}
const wrappedChildren = React.Children.map(children, child => (
<div>
{ child }
</div>
));
return (
<div></div>