You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
433 B
23 lines
433 B
7 years ago
|
import PropTypes from 'prop-types';
|
||
|
import React from 'react';
|
||
|
import styles from './DragPreviewLayer.css';
|
||
|
|
||
|
function DragPreviewLayer({ children, ...otherProps }) {
|
||
|
return (
|
||
|
<div {...otherProps}>
|
||
|
{children}
|
||
|
</div>
|
||
|
);
|
||
|
}
|
||
|
|
||
|
DragPreviewLayer.propTypes = {
|
||
|
children: PropTypes.node,
|
||
|
className: PropTypes.string
|
||
|
};
|
||
|
|
||
|
DragPreviewLayer.defaultProps = {
|
||
|
className: styles.dragLayer
|
||
|
};
|
||
|
|
||
|
export default DragPreviewLayer;
|