Files
victorAnumudu deb5e7518b services page
2024-07-31 16:49:08 +01:00

43 lines
1.5 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import React from 'react';
function PopupVideo({ videoSrc, handler }) {
/*
//www.youtube.com/embed/EE7NqzhMDms?autoplay=1
*/
return (
<div>
<div onClick={handler} className="mfp-bg mfp-ready"></div>
<div
className="mfp-wrap mfp-close-btn-in mfp-auto-cursor mfp-ready"
tabIndex="-1"
style={{ overflow: ' hidden auto' }}
>
<div className="mfp-container mfp-s-ready mfp-iframe-holder">
<div className="mfp-content">
<div className="mfp-iframe-scaler">
<button
onClick={handler}
title="Close (Esc)"
type="button"
className="mfp-close"
>
×
</button>
<iframe
title="video"
className="mfp-iframe"
src={videoSrc}
frameBorder="0"
allowFullScreen=""
/>
</div>
</div>
<div className="mfp-preloader">Loading...</div>
</div>
</div>
</div>
);
}
export default PopupVideo;