"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const jsxRuntime = require("react/jsx-runtime");
const reactBinding = require("@contember/react-binding");
const react = require("react");
const staticRenderFileKind = (fileKind, environment) => {
  const children = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
    !fileKind.baseEntity || !fileKind.childrenOutsideBaseEntity ? fileKind.children : null,
    fileKind.renderUploadedFile,
    fileKind.extractors.map((extractor, i) => /* @__PURE__ */ jsxRuntime.jsx(react.Fragment, { children: extractor.staticRender({ environment }) }, i))
  ] });
  return [
    fileKind.baseEntity === void 0 ? children : /* @__PURE__ */ jsxRuntime.jsx(reactBinding.HasOne, { field: fileKind.baseEntity, children }),
    fileKind.childrenOutsideBaseEntity ? fileKind.children : null
  ];
};
exports.staticRenderFileKind = staticRenderFileKind;
//# sourceMappingURL=staticRenderFileKind.cjs.map
