interface IYoutubeEmbedProps {
    videoId: string;
}

const YoutubeEmbed: React.FC<IYoutubeEmbedProps> = ({ videoId }) => {
    return (
        <iframe
            width="100%"
            height="100%"
            src={`https://www.youtube.com/embed/${videoId}`}
            allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
            allowFullScreen
        ></iframe>
    )
}

export default YoutubeEmbed;