"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const reactBinding = require("@contember/react-binding");
const react = require("react");
const blockAnalyzer = require("./blockAnalyzer.cjs");
const useBlockProps = (children) => {
  const environment = reactBinding.useEnvironment();
  return react.useMemo(() => {
    if (children === void 0) {
      return [];
    }
    return blockAnalyzer.blockAnalyzer.processChildren(children, environment);
  }, [children, environment]);
};
exports.useBlockProps = useBlockProps;
//# sourceMappingURL=useBlockProps.cjs.map
