You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
833 B
40 lines
833 B
import PropTypes from 'prop-types';
|
|
import React, { Component } from 'react';
|
|
import Modal from 'Components/Modal/Modal';
|
|
import FileBrowserModalContentConnector from './FileBrowserModalContentConnector';
|
|
import styles from './FileBrowserModal.css';
|
|
|
|
class FileBrowserModal extends Component {
|
|
|
|
//
|
|
// Render
|
|
|
|
render() {
|
|
const {
|
|
isOpen,
|
|
onModalClose,
|
|
...otherProps
|
|
} = this.props;
|
|
|
|
return (
|
|
<Modal
|
|
className={styles.modal}
|
|
isOpen={isOpen}
|
|
onModalClose={onModalClose}
|
|
>
|
|
<FileBrowserModalContentConnector
|
|
{...otherProps}
|
|
onModalClose={onModalClose}
|
|
/>
|
|
</Modal>
|
|
);
|
|
}
|
|
}
|
|
|
|
FileBrowserModal.propTypes = {
|
|
isOpen: PropTypes.bool.isRequired,
|
|
onModalClose: PropTypes.func.isRequired
|
|
};
|
|
|
|
export default FileBrowserModal;
|