import { createVideoBlockConfig, videoParse } from "@blocknote/core"; import { RiVideoFill } from "react-icons/ri"; import { createReactBlockSpec, ReactCustomBlockRenderProps, } from "../../schema/ReactBlockSpec.js"; import { useResolveUrl } from "../File/useResolveUrl.js"; import { FigureWithCaption } from "../File/helpers/toExternalHTML/FigureWithCaption.js"; import { ResizableFileBlockWrapper } from "../File/helpers/render/ResizableFileBlockWrapper.js"; import { LinkWithCaption } from "../File/helpers/toExternalHTML/LinkWithCaption.js"; export const VideoPreview = ( props: Omit< ReactCustomBlockRenderProps, "contentRef" >, ) => { const resolved = useResolveUrl(props.block.props.url!); return (