balibabu
feat: transform the parser's data structure and add Image to TestingResult (#63)
53be70c
raw
history blame
318 Bytes
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;