Files
yaak/src-web/components/responseViewers/ImageViewer.tsx
2025-11-23 08:38:13 -08:00

11 lines
280 B
TypeScript

import { convertFileSrc } from '@tauri-apps/api/core';
interface Props {
bodyPath: string;
}
export function ImageViewer({ bodyPath }: Props) {
const src = convertFileSrc(bodyPath);
return <img src={src} alt="Response preview" className="max-w-full max-h-full pb-2" />;
}