feat: transform the parser's data structure and add Image to TestingResult (#63)

* feat: add Image to TestingResult

* feat: transform the parser's data structure
This commit is contained in:
balibabu
2024-02-08 18:50:11 +08:00
committed by GitHub
parent 1a156e6569
commit 53be70c7a9
5 changed files with 75 additions and 34 deletions

View File

@@ -0,0 +1,19 @@
import { api_host } from '@/utils/api';
interface IImage {
id: string;
className: string;
}
const Image = ({ id, className, ...props }: IImage) => {
return (
<img
{...props}
src={`${api_host}/document/image/${id}`}
alt=""
className={className}
/>
);
};
export default Image;