import { jsxDEV, Fragment } from "react/jsx-dev-runtime";
import { DeferredSubTrees } from "@contember/react-binding";
import { useCallback } from "react";
const SingleKindSelectFileDialog = ({
  selectedEntityIds,
  onToggleSelectConnector,
  connectorFactory,
  innerComponent: Component,
  innerProps
}) => {
  const onToggleSelect = useCallback((entity) => {
    onToggleSelectConnector(connectorFactory(entity));
  }, [connectorFactory, onToggleSelectConnector]);
  return /* @__PURE__ */ jsxDEV(Fragment, { children: /* @__PURE__ */ jsxDEV(DeferredSubTrees, { fallback: /* @__PURE__ */ jsxDEV(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__ */ 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);
};
export {
  SingleKindSelectFileDialog
};
//# sourceMappingURL=SingleKindSelectFileDialog.js.map
