"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const jsxRuntime = require("react/jsx-runtime");
const reactBinding = require("@contember/react-binding");
const BareUploadField = require("../../internalComponents/BareUploadField.cjs");
const useFileHandler = require("../../fileHandler/useFileHandler.cjs");
const useResolvedFileSelection = require("../../internalComponents/selection/useResolvedFileSelection.cjs");
const UploadField = reactBinding.Component(
  (props) => {
    const fileHandler = useFileHandler.useFileHandler(props, "UploadField");
    const fileSelection = useResolvedFileSelection.useFileSelection(props);
    return /* @__PURE__ */ jsxRuntime.jsx(BareUploadField.BareUploadField, { ...props, fileHandler, fileSelection });
  },
  (props, environment) => /* @__PURE__ */ jsxRuntime.jsx(BareUploadField.BareUploadField, { ...props, fileHandler: useFileHandler.getFileHandler(props, environment, "UploadField") }),
  "UploadField"
);
exports.UploadField = UploadField;
//# sourceMappingURL=UploadField.cjs.map
