Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var React = require("react");
var _ = require("lodash");
var DragLayerMixin = require("react-dnd").DragLayerMixin;
var DragItems = require("../../constants").DragItems;
var LibraryItemThumbnail = require("../LibraryItemThumbnail");
var translateStyle = require("../../core/translateStyle");
var DragLayer = React.createClass({
mixins: [ DragLayerMixin ],
render: function () {
var state = this.getDragLayerState();
if (state.isDragging) {
var style = {
position: "absolute",
top: 0,
left: 0,
zIndex: 9999,