import { Box, Container } from '@chakra-ui/react'; import { GlobalHeader } from '../../components/global-header'; import { OpensourceBanner } from '../../components/opensource-banner'; import { UpdatesBanner } from '../../components/updates-banner'; import { Footer } from '../../components/footer'; import { ContentPageHeader } from '../../components/content-page-header'; import MdRenderer from '../../components/md-renderer'; import { getAllVideos, getVideoById, VideoType } from '../../lib/video'; type VideoProps = { video: VideoType; }; export default function Video(props: VideoProps) { const { video } = props; const VideoContent = require(`../../content/videos/${video.id}.md`).default; return (