import { VideoWithCard } from "@scandic-hotels/design-system/VideoWithCard"

import type { VideoCard } from "@scandic-hotels/trpc/types/blocks"

interface VideoCardBlockProps extends Pick<VideoCard, "video_card"> {}

export function VideoCardBlock({ video_card }: VideoCardBlockProps) {
  if (!video_card) {
    return null
  }

  return <VideoWithCard {...video_card} />
}
