"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const react = require("react");
const SingleKindSelectFileDialog = require("./SingleKindSelectFileDialog.cjs");
const useResolvedSingleKindFileSelection = ({ fileSelectionComponent, fileSelectionProps }, connectorFactoryFactory) => {
  return react.useMemo(() => {
    return getResolvedSingleKindFileSelection({ fileSelectionComponent, fileSelectionProps }, connectorFactoryFactory);
  }, [connectorFactoryFactory, fileSelectionComponent, fileSelectionProps]);
};
const getResolvedSingleKindFileSelection = ({ fileSelectionComponent, fileSelectionProps }, connectorFactoryFactory) => {
  if (!fileSelectionComponent) {
    return void 0;
  }
  const dialogProps = {
    innerComponent: fileSelectionComponent,
    innerProps: fileSelectionProps,
    connectorFactory: connectorFactoryFactory()
  };
  return {
    dialogComponent: SingleKindSelectFileDialog.SingleKindSelectFileDialog,
    dialogProps
  };
};
exports.getResolvedSingleKindFileSelection = getResolvedSingleKindFileSelection;
exports.useResolvedSingleKindFileSelection = useResolvedSingleKindFileSelection;
//# sourceMappingURL=useResolvedSingleKindFileSelection.cjs.map
