1 import PropTypes from 'prop-types';
2 import React from 'react';
3 import { Modal } from 'react-bootstrap';
5 import Loading from './Loading';
7 const PngPlayer = React.lazy(() => import('./PngPlayer'));
9 const PngDialog = ({ onHide, show, src, title }) => <Modal onHide={onHide} show={show} size="lg">
11 <Modal.Header closeButton>
18 <React.Suspense fallback={<Loading />}>
19 <PngPlayer src={src} />
24 PngDialog.propTypes = {
25 onHide: PropTypes.func,
27 src: PropTypes.string,
28 title: PropTypes.string,
31 export default PngDialog;