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

39 lines
828 B
React
Raw Normal View History

2018-09-26 19:48:07 +02:00
// @flow
import React from 'react';
import { Modal } from 'modal/modal';
2018-09-26 19:48:07 +02:00
import type { Metadata } from 'types/claim';
2017-09-07 23:18:33 +02:00
2018-09-26 19:48:07 +02:00
type Props = {
metadata: Metadata,
closeModal: () => void,
};
class ModalFileTimeout extends React.PureComponent<Props> {
2017-09-07 23:18:33 +02:00
render() {
2018-05-03 19:22:10 +02:00
const {
metadata: { title },
2018-09-26 19:48:07 +02:00
closeModal,
2018-05-03 19:22:10 +02:00
} = this.props;
2017-09-07 23:18:33 +02:00
return (
2018-09-26 19:48:07 +02:00
<Modal
isOpen
title={__('Unable to Download')}
contentLabel={__('Download failed')}
onConfirmed={closeModal}
>
<section className="card__content">
<p className="error-modal__error-list">
2018-09-26 19:48:07 +02:00
{__('LBRY was unable to download the stream')}:
<div>
<b>{`"${title}"`}</b>
</div>
2018-09-26 19:48:07 +02:00
</p>
</section>
2017-09-07 23:18:33 +02:00
</Modal>
);
}
}
export default ModalFileTimeout;