lbry-desktop/ui/modal/modalSocialShare/view.jsx

25 lines
620 B
React
Raw Normal View History

2018-09-12 12:42:15 -04:00
// @flow
import React from 'react';
import { Modal } from 'modal/modal';
import SocialShare from 'component/socialShare';
type Props = {
closeModal: () => void,
uri: string,
2019-10-29 12:23:56 -04:00
webShareable: boolean,
2018-11-09 10:34:48 -05:00
isChannel: boolean,
2018-09-12 12:42:15 -04:00
};
class ModalSocialShare extends React.PureComponent<Props> {
render() {
2019-10-29 12:23:56 -04:00
const { closeModal, uri, webShareable, isChannel } = this.props;
2018-09-12 12:42:15 -04:00
return (
2019-11-22 16:13:00 -05:00
<Modal isOpen onAborted={closeModal} onConfirmed={closeModal} title={__('Share')}>
<SocialShare uri={uri} webShareable={webShareable} isChannel={isChannel} />
2018-09-12 12:42:15 -04:00
</Modal>
);
}
}
export default ModalSocialShare;