diff --git a/components/onboard/youtube-video.js b/components/onboard/youtube-video.js new file mode 100644 index 00000000..b794c0f4 --- /dev/null +++ b/components/onboard/youtube-video.js @@ -0,0 +1,32 @@ +const YoutubeVideo = ({ + width=560, + height=315, + 'youtube-id': youtubeID = 'dQw4w9WgXcQ', + title="YouTube video player", +}) => { + const src = `https://www.youtube.com/embed/${youtubeID}` + + const allowlist = [ + 'accelerometer', + 'autoplay', + 'clipboard-write', + 'encrypted-media', + 'gyroscope', + 'picture-in-picture', + 'web-share', + 'fullscreen' + ].join('; ') + + return ( + + ) +} + +export default YoutubeVideo \ No newline at end of file