import type { VideoBlockValue } from "@/types/wagtail"; const DIRECT_VIDEO_EXTENSIONS = [".mp4", ".webm", ".ogg"]; export default function Video({ value }: { value: VideoBlockValue }) { if (!value.video_url) { return null; } const isDirectFile = DIRECT_VIDEO_EXTENSIONS.some((ext) => value.video_url.toLowerCase().includes(ext) ); return (
{value.heading && (

{value.heading}

)}
{isDirectFile ? (