import React from 'react';
import { useDraggableArea } from './use-draggable-area';
import { jsx as _jsx } from "react/jsx-runtime";
export function DraggableArea({
  areaId,
  testId,
  className,
  onDragStart = () => {},
  onDrag,
  onDragEnd = () => {},
  children = null,
  ...props
}) {
  const onStart = useDraggableArea({
    areaId,
    onDragStart,
    onDrag,
    onDragEnd
  });
  return /*#__PURE__*/_jsx("div", {
    className: className,
    onMouseDown: onStart,
    "test-id": testId,
    role: "none",
    ...props,
    children: children
  });
}