import type { PreviewProps } from "sanity"; import { Flex, Text } from "@sanity/ui"; import ReactPlayer from "react-player"; import { SquarePlay } from "lucide-react"; export function YouTubePreview(props: PreviewProps) { const { title: videoId } = props; return ( {typeof videoId === "string" ? ( ) : ( Add a YouTube Video ID )} ); }