lbry-desktop/ui/js/component/modal-page.js

18 lines
528 B
JavaScript
Raw Normal View History

2017-04-01 02:51:15 -04:00
import React from 'react';
import ReactModal from 'react-modal';
export const ModalPage = React.createClass({
render: function() {
return (
<ReactModal onCloseRequested={this.props.onAborted || this.props.onConfirmed} {...this.props}
className={(this.props.className || '') + ' modal-page'}
2017-04-12 16:23:20 -04:00
overlayClassName="modal-overlay">
2017-04-01 02:51:15 -04:00
<div className="modal-page__content">
{this.props.children}
</div>
</ReactModal>
);
}
});
export default ModalPage;