"use client" import { displayFileName } from "@/lib/drive/display-file-name" import { cn } from "@/lib/utils" type SvgPreviewViewerProps = { markup: string name: string className?: string } function svgToSrcDoc(markup: string): string { const trimmed = markup.trim() const lower = trimmed.toLowerCase() if (lower.startsWith("${trimmed}` } /** Sandboxed inline SVG — avoids blob MIME issues (Nextcloud often serves text/xml). */ export function SvgPreviewViewer({ markup, name, className }: SvgPreviewViewerProps) { return (