* feat(BOOK-257): Added VideoPlayer with card component * feat(BOOK-257): Added queries and component for VideoCard block to Content and Collection pages * fix(BOOK-257): Only setting object-fit: cover on the video if it is not fullscreen * feat(BOOK-257): Added queries and component for VideoCard block to Startpage * feat(BOOK-257): Added queries and component for Video block to content/collection/start page Approved-by: Chuma Mcphoy (We Ahead)
14 lines
338 B
TypeScript
14 lines
338 B
TypeScript
import { VideoPlayer } from "@scandic-hotels/design-system/VideoPlayer"
|
|
|
|
import type { VideoBlock } from "@scandic-hotels/trpc/types/blocks"
|
|
|
|
interface VideoBlockProps extends Pick<VideoBlock, "video"> {}
|
|
|
|
export function VideoBlock({ video }: VideoBlockProps) {
|
|
if (!video) {
|
|
return null
|
|
}
|
|
|
|
return <VideoPlayer {...video} />
|
|
}
|