"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const jsxDevRuntime = require("react/jsx-dev-runtime");
const reactBinding = require("@contember/react-binding");
const react = require("react");
const SingleKindSelectFileDialog = ({
  selectedEntityIds,
  onToggleSelectConnector,
  connectorFactory,
  innerComponent: Component,
  innerProps
}) => {
  const onToggleSelect = react.useCallback((entity) => {
    onToggleSelectConnector(connectorFactory(entity));
  }, [connectorFactory, onToggleSelectConnector]);
  return /* @__PURE__ */ jsxDevRuntime.jsxDEV(jsxDevRuntime.Fragment, { children: /* @__PURE__ */ jsxDevRuntime.jsxDEV(reactBinding.DeferredSubTrees, { fallback: /* @__PURE__ */ jsxDevRuntime.jsxDEV(jsxDevRuntime.Fragment, { children: "Loading..." }, void 0, false, {
    fileName: "/__w/interface/interface/packages/admin/src/components/bindingFacade/upload/internalComponents/selection/SingleKindSelectFileDialog.tsx",
    lineNumber: 31,
    columnNumber: 31
  }, void 0), children: /* @__PURE__ */ jsxDevRuntime.jsxDEV(
    Component,
    {
      ...innerProps,
      onToggleSelect,
      selectedEntityIds
    },
    void 0,
    false,
    {
      fileName: "/__w/interface/interface/packages/admin/src/components/bindingFacade/upload/internalComponents/selection/SingleKindSelectFileDialog.tsx",
      lineNumber: 32,
      columnNumber: 4
    },
    void 0
  ) }, void 0, false, {
    fileName: "/__w/interface/interface/packages/admin/src/components/bindingFacade/upload/internalComponents/selection/SingleKindSelectFileDialog.tsx",
    lineNumber: 31,
    columnNumber: 3
  }, void 0) }, void 0, false, {
    fileName: "/__w/interface/interface/packages/admin/src/components/bindingFacade/upload/internalComponents/selection/SingleKindSelectFileDialog.tsx",
    lineNumber: 30,
    columnNumber: 9
  }, void 0);
};
exports.SingleKindSelectFileDialog = SingleKindSelectFileDialog;
//# sourceMappingURL=SingleKindSelectFileDialog.cjs.map
