import { createElement, Fragment } from "react";
import { HasOne } from "@contember/binding";
const staticRenderFileKind = (fileKind, environment) => {
  const children = /* @__PURE__ */ createElement(Fragment, null, !fileKind.baseEntity || !fileKind.childrenOutsideBaseEntity ? fileKind.children : null, fileKind.renderUploadedFile, fileKind.extractors.map((extractor, i) => /* @__PURE__ */ createElement(Fragment, {
    key: i
  }, extractor.staticRender({ environment }))));
  return [
    fileKind.baseEntity === void 0 ? children : /* @__PURE__ */ createElement(HasOne, {
      field: fileKind.baseEntity
    }, children),
    fileKind.childrenOutsideBaseEntity ? fileKind.children : null
  ];
};
export { staticRenderFileKind };
//# sourceMappingURL=staticRenderFileKind.js.map
