mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-05-29 09:38:13 +08:00
20 lines
318 B
TypeScript
20 lines
318 B
TypeScript
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;
|