"use client"; import { toRelativePath } from "@/lib/utils"; import { getImageMimeType } from "@/lib/utils/file-types"; type FileImageViewerProps = { path: string; content: string; // base64-encoded worktreePath?: string; }; export function FileImageViewer({ path, content, worktreePath }: FileImageViewerProps) { const mime = getImageMimeType(path); const src = `data:${mime};base64,${content}`; return (