"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const useGetReferenceEntityList = require("./useGetReferenceEntityList.cjs");
const react = require("react");
const useGetReferencedEntity = (opts) => {
  const getList = useGetReferenceEntityList.useGetReferenceEntityList(opts);
  return react.useCallback((path, id) => {
    const list = getList(path);
    return list.getChildEntityById(id);
  }, [getList]);
};
exports.useGetReferencedEntity = useGetReferencedEntity;
//# sourceMappingURL=useGetReferencedEntity.cjs.map
