UNPKG

@ea-lab/reactive-json

Version:

A REACT-based lib that transforms JSON (or YAML) into interactive HTML markup.

16 lines (15 loc) 470 B
import { jsx as n } from "react/jsx-runtime"; import { ActionDependant as i } from "../../../engine/Actions.js"; import { View as m } from "../../../engine/View.js"; const p = ({ props: o, currentData: t, path: e }) => /* @__PURE__ */ n(i, { ...o, children: o.content && /* @__PURE__ */ n( m, { props: o.content, currentData: (t == null ? void 0 : t.content) ?? void 0, datafield: "content", path: e + ".content" } ) }); export { p as Phantom };