import { jsx } from "react/jsx-runtime";
import { Component } from "@contember/react-binding";
import { BareUploadField } from "../../internalComponents/BareUploadField.js";
import { useFileHandler, getFileHandler } from "../../fileHandler/useFileHandler.js";
import { useFileSelection } from "../../internalComponents/selection/useResolvedFileSelection.js";
const UploadField = Component(
  (props) => {
    const fileHandler = useFileHandler(props, "UploadField");
    const fileSelection = useFileSelection(props);
    return /* @__PURE__ */ jsx(BareUploadField, { ...props, fileHandler, fileSelection });
  },
  (props, environment) => /* @__PURE__ */ jsx(BareUploadField, { ...props, fileHandler: getFileHandler(props, environment, "UploadField") }),
  "UploadField"
);
export {
  UploadField
};
//# sourceMappingURL=UploadField.js.map
