import { jsxDEV, Fragment } from "react/jsx-dev-runtime";
import { Component } from "@contember/binding";
import { AutoField } from "./AutoField.js";
const AutoFields = Component(
  (props, env) => {
    const schema = env.getSchema();
    const entity = env.getSubTreeNode().entity;
    const fields = Array.from(entity.fields.values()).filter((it) => props.excludedFields === void 0 || !props.excludedFields.includes(it.name));
    const autoFields = fields.map((field) => /* @__PURE__ */ jsxDEV(
      AutoField,
      {
        schema,
        entityName: entity.name,
        fieldName: field.name,
        createEditLink: props.createEditLink,
        excludedEntities: [entity.name, ...props.excludedEntities ?? []]
      },
      field.name,
      false,
      {
        fileName: "/__w/interface/interface/packages/admin/src/components/Auto/AutoFields.tsx",
        lineNumber: 21,
        columnNumber: 4
      },
      globalThis
    ));
    return /* @__PURE__ */ jsxDEV(Fragment, { children: autoFields }, void 0, false, {
      fileName: "/__w/interface/interface/packages/admin/src/components/Auto/AutoFields.tsx",
      lineNumber: 31,
      columnNumber: 10
    }, globalThis);
  }
);
export {
  AutoFields
};
//# sourceMappingURL=AutoFields.js.map
