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

25 lines
641 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,
2018-10-04 15:39:14 +02:00
speechShareable: boolean,
2018-11-09 16:34:48 +01:00
isChannel: boolean,
2018-09-12 18:42:15 +02:00
};
class ModalSocialShare extends React.PureComponent<Props> {
render() {
2018-11-09 16:34:48 +01:00
const { closeModal, uri, speechShareable, isChannel } = this.props;
2018-09-12 18:42:15 +02:00
return (
2018-09-26 19:48:07 +02:00
<Modal isOpen onAborted={closeModal} type="custom" title={__('Share')}>
2019-05-07 23:38:29 +02:00
<SocialShare uri={uri} onDone={closeModal} speechShareable={speechShareable} isChannel={isChannel} />
2018-09-12 18:42:15 +02:00
</Modal>
);
}
}
export default ModalSocialShare;