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