mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-01-19 07:26:59 +01:00
12 lines
307 B
TypeScript
12 lines
307 B
TypeScript
import { convertFileSrc } from '@tauri-apps/api/core';
|
|
import React from 'react';
|
|
|
|
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" />;
|
|
}
|