1 | import { __rest } from "tslib";
|
2 | import * as React from 'react';
|
3 | import styles from '@patternfly/react-styles/css/components/MultipleFileUpload/multiple-file-upload';
|
4 | import { css } from '@patternfly/react-styles';
|
5 | import { MultipleFileUploadContext } from './MultipleFileUpload';
|
6 | import { Button } from '../Button';
|
7 | export const MultipleFileUploadButton = (_a) => {
|
8 | var { className, 'aria-label': ariaLabel } = _a, props = __rest(_a, ["className", 'aria-label']);
|
9 | const { open } = React.useContext(MultipleFileUploadContext);
|
10 | return (React.createElement("div", Object.assign({ className: css(styles.multipleFileUploadUpload, className) }, props),
|
11 | React.createElement(Button, { variant: "secondary", "aria-label": ariaLabel, onClick: open }, "Upload")));
|
12 | };
|
13 | MultipleFileUploadButton.displayName = 'MultipleFileUploadButton';
|
14 |
|
\ | No newline at end of file |