UNPKG

@react-form-builder/core

Version:

React JSON Schema Form Builder to create complex, validated, reusable forms with no deep React knowledge required

13 lines (12 loc) 525 B
import { jsx as e, Fragment as n } from "react/jsx-runtime"; import { createElement as i } from "react"; import { ComponentDataProvider as p } from "../../utils/contexts/ComponentDataContext.js"; import { ComponentViewer as a } from "./ComponentViewer.js"; const s = ({ data: o, componentDataViewer: t }) => { const m = o.map((r) => /* @__PURE__ */ e(p, { value: r, children: i(t ?? a) }, r.id)); return /* @__PURE__ */ e(n, { children: m }); }; export { s as ComponentTree }; //# sourceMappingURL=ComponentTree.js.map