dify/web/app/components/base/file-thumb/image-render.tsx
Stephen Zhou a84c2d36a3
style: format with vp fmt (#38803)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-07-12 15:57:46 +00:00

17 lines
383 B
TypeScript

import * as React from 'react'
type ImageRenderProps = {
sourceUrl: string
name: string
}
const ImageRender = ({ sourceUrl, name }: ImageRenderProps) => {
return (
<div className="size-full border-2 border-effects-image-frame shadow-xs">
<img className="size-full object-cover" src={sourceUrl} alt={name} />
</div>
)
}
export default React.memo(ImageRender)