add custom directives

This commit is contained in:
2023-02-11 21:00:28 +01:00
parent 4902006130
commit aa3bb66d5e
7 changed files with 110 additions and 33 deletions

9
components/Youtube.tsx Normal file
View File

@@ -0,0 +1,9 @@
export const YouTubeVideo = ({id, children} : any) => (
<iframe
src={'https://www.youtube.com/embed/' + id}
width="640"
height="360"
>
{children}
</iframe>
)