File tree Expand file tree Collapse file tree 2 files changed +3
-35
lines changed
Expand file tree Collapse file tree 2 files changed +3
-35
lines changed Original file line number Diff line number Diff line change 1- import { useProxyUrl } from '@/hooks/useGovtBrowser'
2-
31interface DemoVideoModalContentProps {
42 src ?: string
53 title ?: string
64}
75
86export default function DemoVideoModalContent (
97 props : DemoVideoModalContentProps ,
10- ) {
8+ ) : JSX . Element {
119 const { src, title } = props
12- const { createProxiedUrl } = useProxyUrl ( )
13-
14- if ( ! src ) {
15- return null
16- }
17-
1810 return (
1911 < div
2012 style = { {
@@ -25,7 +17,7 @@ export default function DemoVideoModalContent(
2517 } }
2618 >
2719 < iframe
28- src = { createProxiedUrl ( src ) }
20+ src = { src }
2921 title = { title }
3022 loading = "lazy"
3123 allowFullScreen
@@ -38,7 +30,7 @@ export default function DemoVideoModalContent(
3830 height : '100%' ,
3931 colorScheme : 'light' ,
4032 } }
41- / >
33+ > </ iframe >
4234 </ div >
4335 )
4436}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments