"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.DragOverlay = void 0;
var react_1 = __importDefault(require("react"));
var useDndContext_1 = require("./useDndContext");
var DragOverlay = function (_a) {
    var children = _a.children;
    var dndContext = (0, useDndContext_1.useDndContext)();
    return react_1.default.createElement("div", null, dndContext.dragActive ? children : null);
};
exports.DragOverlay = DragOverlay;
