diff --git a/src/components/YouTubeVideo.astro b/src/components/YouTubeVideo.astro new file mode 100644 index 000000000..9d4820c6a --- /dev/null +++ b/src/components/YouTubeVideo.astro @@ -0,0 +1,14 @@ +--- +interface Props { + id: string; +} + +const videoId = Astro.props.id; +--- + + diff --git a/src/components/talk/Video.astro b/src/components/talk/Video.astro index 9df1f24bb..b370ebf0f 100644 --- a/src/components/talk/Video.astro +++ b/src/components/talk/Video.astro @@ -1,5 +1,6 @@ --- import Markdown from '../Markdown.astro'; +import YouTubeVideo from '../YouTubeVideo.astro'; interface Props { id: string; @@ -15,12 +16,7 @@ const { id, type }: Props = Astro.props;