2018-09-26 13:48:07 -04:00
|
|
|
// @flow
|
2017-12-21 18:08:54 -03:00
|
|
|
import React from 'react';
|
|
|
|
import { Modal } from 'modal/modal';
|
2017-09-07 17:18:33 -04:00
|
|
|
|
2018-09-26 13:48:07 -04:00
|
|
|
type Props = {
|
2019-04-24 10:02:08 -04:00
|
|
|
uri: string,
|
|
|
|
metadata: StreamMetadata,
|
2018-09-26 13:48:07 -04:00
|
|
|
closeModal: () => void,
|
|
|
|
};
|
|
|
|
|
|
|
|
class ModalFileTimeout extends React.PureComponent<Props> {
|
2017-09-07 17:18:33 -04:00
|
|
|
render() {
|
2018-05-03 11:22:10 -06:00
|
|
|
const {
|
2019-04-24 10:02:08 -04:00
|
|
|
uri,
|
2018-05-03 11:22:10 -06:00
|
|
|
metadata: { title },
|
2018-09-26 13:48:07 -04:00
|
|
|
closeModal,
|
2018-05-03 11:22:10 -06:00
|
|
|
} = this.props;
|
2017-09-07 17:18:33 -04:00
|
|
|
|
|
|
|
return (
|
2019-05-07 17:38:29 -04:00
|
|
|
<Modal isOpen title={__('Unable to Download')} contentLabel={__('Download failed')} onConfirmed={closeModal}>
|
2019-07-21 17:31:22 -04:00
|
|
|
<p className="error-modal__error-list">
|
|
|
|
{__('LBRY was unable to download the stream')}:
|
|
|
|
<div>
|
|
|
|
<b>{title ? `"${title}"` : uri}</b>
|
|
|
|
</div>
|
|
|
|
</p>
|
2017-09-07 17:18:33 -04:00
|
|
|
</Modal>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default ModalFileTimeout;
|