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