/** * @flow * @file Content Explorer Delete Confirmation Dialog * @author Box */ import React from 'react'; import Modal from 'react-modal'; import { injectIntl } from 'react-intl'; import ContentUploader from '../../content-uploader'; import messages from '../messages'; import { CLASS_MODAL_CONTENT_FULL_BLEED, CLASS_MODAL_OVERLAY, CLASS_MODAL } from '../../../constants'; type Props = { apiHost: string, appElement: HTMLElement, currentFolderId: ?string, isOpen: boolean, onClose: Function, onUpload?: Function, parentElement: HTMLElement, requestInterceptor?: Function, responseInterceptor?: Function, sharedLink?: string, sharedLinkPassword?: string, token: Token, uploadHost: string, } & InjectIntlProvidedProps; const UploadDialog = ({ isOpen, currentFolderId, token, sharedLink, sharedLinkPassword, apiHost, uploadHost, onClose, parentElement, appElement, onUpload, requestInterceptor, responseInterceptor, intl, }: Props) => ( parentElement} portalClassName={`${CLASS_MODAL} be-modal-upload`} > ); export default injectIntl(UploadDialog);