33import { BackgroundContainer } from '@core/Backgrounds'
44import HlsVideoPlayer from '@core/HlsVideoPlayer/HlsVideoPlayer'
55import { ResourceLink } from '@core/Link'
6- import { getTwAspectRatioUtilityOnRatio , ImageRatioKeys } from '@core/SanityImage/SanityImage'
6+ import { getTwAspectRatioUtilityOnRatio , type ImageRatioKeys } from '@core/SanityImage/SanityImage'
77import { Heading } from '@core/Typography'
88/* import type { VideoJS } from '@core/VideoJsPlayer' */
99import type { PortableTextBlock } from '@portabletext/types'
@@ -34,7 +34,7 @@ const getHeightWidth = (aspectRatio: string, height?: number | string) => {
3434 return 'w-full h-full'
3535 }
3636 }
37- return `h-[${ typeof height == 'string' ? height : `${ height } px` } ] w-full`
37+ return `h-[${ typeof height === 'string' ? height : `${ height } px` } ] w-full`
3838}
3939
4040export const getThumbnailRatio = ( aspectRatio : string , height ?: number ) => {
@@ -106,7 +106,7 @@ export const VideoComponentWithCaption = ({
106106 < HlsVideoPlayer
107107 variant = "default"
108108 src = { video . url }
109- //@ts -ignore :todo
109+ //@ts -expect-error :todo
110110 aspectRatio = { designOptions . aspectRatio }
111111 poster = { urlFor ( video . thumbnail ?. asset ) . width ( w ) . height ( h ) . url ( ) }
112112 title = { video . title }
@@ -154,7 +154,7 @@ export const VideoComponent = ({ video, designOptions, useFillMode = false, clas
154154 < HlsVideoPlayer
155155 variant = "default"
156156 src = { video ?. url }
157- //@ts -ignore :todo
157+ //@ts -expect-error :todo
158158 aspectRatio = { designOptions ?. aspectRatio }
159159 poster = { urlFor ( video . thumbnail ?. asset ) . width ( w ) . height ( h ) . url ( ) }
160160 title = { video . title }
@@ -180,7 +180,7 @@ const VideoPlayer = ({ anchor, data, className }: { data: VideoPlayerData; ancho
180180 < div className = { `pb-6` } >
181181 { title && < Heading value = { title } as = "h2" variant = "xl" className = "mb-2 pb-2" /> }
182182 { ingress && < IngressText value = { ingress } className = "mb-lg" /> }
183- { action && action ?. label && actionUrl && (
183+ { action ?. label && actionUrl && (
184184 < ResourceLink
185185 href = { actionUrl || '' }
186186 file = { {
0 commit comments