"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MultipleFileUploadButton = void 0;
const tslib_1 = require("tslib");
const React = tslib_1.__importStar(require("react"));
const multiple_file_upload_1 = tslib_1.__importDefault(require("@patternfly/react-styles/css/components/MultipleFileUpload/multiple-file-upload"));
const react_styles_1 = require("@patternfly/react-styles");
const MultipleFileUpload_1 = require("./MultipleFileUpload");
const Button_1 = require("../Button");
const MultipleFileUploadButton = (_a) => {
    var { className, 'aria-label': ariaLabel } = _a, props = tslib_1.__rest(_a, ["className", 'aria-label']);
    const { open } = React.useContext(MultipleFileUpload_1.MultipleFileUploadContext);
    return (React.createElement("div", Object.assign({ className: (0, react_styles_1.css)(multiple_file_upload_1.default.multipleFileUploadUpload, className) }, props),
        React.createElement(Button_1.Button, { variant: "secondary", "aria-label": ariaLabel, onClick: open }, "Upload")));
};
exports.MultipleFileUploadButton = MultipleFileUploadButton;
exports.MultipleFileUploadButton.displayName = 'MultipleFileUploadButton';
//# sourceMappingURL=MultipleFileUploadButton.js.map