import { HasOne } from "@contember/binding";
import { Fragment as Fragment$1 } from "react";
import { jsxDEV, Fragment } from "react/jsx-dev-runtime";
var _jsxFileName = "/__w/interface/interface/packages/admin/src/components/bindingFacade/upload/fileHandler/utils/staticRenderFileKind.tsx";
const staticRenderFileKind = (fileKind, environment) => {
  const children = /* @__PURE__ */ jsxDEV(Fragment, {
    children: [!fileKind.baseEntity || !fileKind.childrenOutsideBaseEntity ? fileKind.children : null, fileKind.renderUploadedFile, fileKind.extractors.map((extractor, i) => /* @__PURE__ */ jsxDEV(Fragment$1, {
      children: extractor.staticRender({
        environment
      })
    }, i, false, {
      fileName: _jsxFileName,
      lineNumber: 12,
      columnNumber: 5
    }, void 0))]
  }, void 0, true);
  return [fileKind.baseEntity === void 0 ? children : /* @__PURE__ */ jsxDEV(HasOne, {
    field: fileKind.baseEntity,
    children
  }, void 0, false, {
    fileName: _jsxFileName,
    lineNumber: 19,
    columnNumber: 6
  }, void 0), fileKind.childrenOutsideBaseEntity ? fileKind.children : null];
};
export {
  staticRenderFileKind
};
//# sourceMappingURL=staticRenderFileKind.js.map
