"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.DraggableArea = DraggableArea;
var _react = _interopRequireDefault(require("react"));
var _useDraggableArea = require("./use-draggable-area");
var _jsxRuntime = require("react/jsx-runtime");
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
function DraggableArea({
  areaId,
  testId,
  className,
  onDragStart = () => {},
  onDrag,
  onDragEnd = () => {},
  children = null,
  ...props
}) {
  const onStart = (0, _useDraggableArea.useDraggableArea)({
    areaId,
    onDragStart,
    onDrag,
    onDragEnd
  });
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
    className: className,
    onMouseDown: onStart,
    "test-id": testId,
    role: "none",
    ...props,
    children: children
  });
}