"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const jsxRuntime = require("react/jsx-runtime");
const reactBinding = require("@contember/react-binding");
const DerivedFieldLink = reactBinding.Component(
  (props) => {
    reactBinding.useDerivedField(props.sourceField, props.derivedField, props.transform, props.agent);
    return null;
  },
  (props) => /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
    /* @__PURE__ */ jsxRuntime.jsx(reactBinding.SugaredField, { field: props.sourceField }),
    /* @__PURE__ */ jsxRuntime.jsx(reactBinding.SugaredField, { field: props.derivedField })
  ] }),
  "DerivedFieldLink"
);
exports.DerivedFieldLink = DerivedFieldLink;
//# sourceMappingURL=DerivedFieldLink.cjs.map
