import PropTypes from 'prop-types'; import React from 'react'; import IconCloud from '../../icons/general/IconCloud'; const DropShadowFilter = () => ( ); /** * react-draggable requires component that supports onMouseDown, onMouseUp, onTouchStart, and onTouchEnd so we need * to explicitly pass them through here. */ const DragCloud = ({ className, cloudSize = 64, onMouseDown, onMouseUp, onTouchEnd, onTouchStart, position, style, }) => { const { x, y } = position; return ( // eslint-disable-next-line jsx-a11y/no-static-element-interactions
}} height={cloudSize} width={cloudSize} />
); }; DragCloud.displayName = 'DragCloud'; DragCloud.propTypes = { className: PropTypes.string, cloudSize: PropTypes.number, onMouseUp: PropTypes.func, onMouseDown: PropTypes.func, onTouchEnd: PropTypes.func, onTouchStart: PropTypes.func, position: PropTypes.objectOf(PropTypes.number).isRequired, style: PropTypes.object, }; // Actual export export default DragCloud;