%PDF- %PDF-
Direktori : /var/www/html/src/Components/ |
Current File : /var/www/html/src/Components/VideoComponent.js |
import React from "react"; import PropTypes from "prop-types"; const YoutubeEmbed = ({ embedId }) => ( <div className="video-responsive"> <iframe width="1921" height="960" src={`https://www.youtube.com/embed/${embedId}`} frameBorder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowFullScreen title="Embedded youtube" /> </div> ); YoutubeEmbed.propTypes = { embedId: PropTypes.string.isRequired, }; export default YoutubeEmbed;