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.
35 lines
733 B
35 lines
733 B
import PropTypes from 'prop-types';
|
|
import React from 'react';
|
|
import Modal from 'Components/Modal/Modal';
|
|
import TrackFileEditorModalContentConnector from './TrackFileEditorModalContentConnector';
|
|
|
|
function TrackFileEditorModal(props) {
|
|
const {
|
|
isOpen,
|
|
onModalClose,
|
|
...otherProps
|
|
} = props;
|
|
|
|
return (
|
|
<Modal
|
|
isOpen={isOpen}
|
|
onModalClose={onModalClose}
|
|
>
|
|
{
|
|
isOpen &&
|
|
<TrackFileEditorModalContentConnector
|
|
{...otherProps}
|
|
onModalClose={onModalClose}
|
|
/>
|
|
}
|
|
</Modal>
|
|
);
|
|
}
|
|
|
|
TrackFileEditorModal.propTypes = {
|
|
isOpen: PropTypes.bool.isRequired,
|
|
onModalClose: PropTypes.func.isRequired
|
|
};
|
|
|
|
export default TrackFileEditorModal;
|