lbry-desktop/src/renderer/modal/modalSocialShare/view.jsx

23 lines
507 B
React
Raw Normal View History

2018-09-12 18:42:15 +02:00
// @flow
import React from 'react';
import { Modal } from 'modal/modal';
import SocialShare from 'component/socialShare';
type Props = {
closeModal: () => void,
uri: string,
};
class ModalSocialShare extends React.PureComponent<Props> {
render() {
const { closeModal, uri } = this.props;
return (
2018-09-26 19:48:07 +02:00
<Modal isOpen onAborted={closeModal} type="custom" title={__('Share')}>
2018-09-12 18:42:15 +02:00
<SocialShare uri={uri} onDone={closeModal} />
</Modal>
);
}
}
export default ModalSocialShare;