File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -3,9 +3,10 @@ interface Props {
33 videoId: string ;
44 videoTitle: string ;
55 thumbnailTimeOrURL: string ;
6+ moreVideosLink: string ;
67}
78
8- const { videoId, videoTitle, thumbnailTimeOrURL } = Astro .props ;
9+ const { videoId, videoTitle, thumbnailTimeOrURL, moreVideosLink = " true " } = Astro .props ;
910
1011const customerId = " 1mwganm1ma0xgnmj" ;
1112const baseUrl = ` https://customer-${customerId }.cloudflarestream.com/ ` ;
@@ -39,7 +40,11 @@ if (thumbnailTimeOrURL !== undefined) {
3940 title ={ videoTitle }
4041 id ={ videoId } ></iframe >
4142</div >
42- <a href =" https://www.youtube.com/@CloudflareDevelopers" target =" _blank" >Watch more videos on our Developer Channel</a >
43+
44+ { moreVideosLink == " true" &&
45+ <a href = " https://www.youtube.com/@CloudflareDevelopers" target = " _blank" >Watch more videos on our Developer Channel</a >
46+ }
47+
4348<script is:inline src =" https://embed.cloudflarestream.com/embed/sdk.latest.js"
4449></script >
4550<script is:inline define:vars ={ { vidId: videoId , videoTitle }} >
You can’t perform that action at this time.
0 commit comments