add custom directives
This commit is contained in:
9
components/Youtube.tsx
Normal file
9
components/Youtube.tsx
Normal 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>
|
||||
)
|
||||
Reference in New Issue
Block a user