"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const jsxRuntime = require("react/jsx-runtime");
const reactBinding = require("@contember/react-binding");
const RepeaterInner = require("./RepeaterInner.cjs");
const Repeater = reactBinding.Component(
  (props) => {
    const entityList = reactBinding.useEntityList(props);
    return /* @__PURE__ */ jsxRuntime.jsx(RepeaterInner.RepeaterInner, { ...props, accessor: entityList });
  },
  (props, environment) => /* @__PURE__ */ jsxRuntime.jsx(reactBinding.HasMany, { ...props, initialEntityCount: props.initialEntityCount ?? 1, children: RepeaterInner.RepeaterInner.staticRender(props, environment) }),
  "Repeater"
);
exports.Repeater = Repeater;
//# sourceMappingURL=Repeater.cjs.map
