UNPKG

@open-formulieren/formio-builder

Version:

An opinionated Formio webform builder for Open Forms

24 lines (23 loc) 585 B
import { jsx as t } from "react/jsx-runtime"; import { useDroppable as n } from "@dnd-kit/react"; /* empty css */ import { useDropzoneContext as s, DropzoneContext as p } from "./context.js"; const f = ({ id: o, children: e }) => { const { collisionPriority: r } = s(), { ref: i } = n({ id: o, collisionPriority: r }); return /* @__PURE__ */ t("div", { className: "offb-drop-zone", "data-testid": o, ref: i, children: /* @__PURE__ */ t(p.Provider, { value: { collisionPriority: r + 1 }, children: e }) }); }; export { f as default };