diff --git a/rsconcept/frontend/src/components/Common/EmbedYoutube.tsx b/rsconcept/frontend/src/components/Common/EmbedYoutube.tsx new file mode 100644 index 00000000..bbb4da35 --- /dev/null +++ b/rsconcept/frontend/src/components/Common/EmbedYoutube.tsx @@ -0,0 +1,31 @@ +interface EmbedYoutubeProps { + videoID: string + pxHeight: number + pxWidth?: number +} + +function EmbedYoutube({ videoID, pxHeight, pxWidth }: EmbedYoutubeProps) { + if (!pxWidth) { + pxWidth = pxHeight * 16 / 9; + console.log(pxWidth); + } + return ( +
+