import { createElement } from "react";
import { Component, useEntityList, HasMany } from "@contember/binding";
import { RepeaterInner } from "./RepeaterInner.js";
const Repeater = Component((props) => {
  const entityList = useEntityList(props);
  return /* @__PURE__ */ createElement(RepeaterInner, {
    ...props,
    accessor: entityList
  });
}, (props, environment) => /* @__PURE__ */ createElement(HasMany, {
  ...props,
  initialEntityCount: props.initialEntityCount ?? 1
}, RepeaterInner.staticRender(props, environment)), "Repeater");
export { Repeater };
//# sourceMappingURL=Repeater.js.map
