Spaces:
Runtime error
Runtime error
File size: 772 Bytes
8fd7a1d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
import PropTypes from 'prop-types';
import classNames from 'classnames';
import React from 'react';
import Box from '../box/box.jsx';
import styles from './blocks.css';
const BlocksComponent = props => {
const {
containerRef,
dragOver,
gridVisible,
...componentProps
} = props;
return (
<Box
className={classNames(styles.blocks, {
[styles.dragOver]: dragOver,
[styles['hide-grid']]: gridVisible === false
})}
{...componentProps}
componentRef={containerRef}
/>
);
};
BlocksComponent.propTypes = {
containerRef: PropTypes.func,
dragOver: PropTypes.bool,
gridVisible: PropTypes.bool
};
export default BlocksComponent;
|