mirror of
https://github.com/langgenius/dify.git
synced 2026-04-12 04:26:29 +08:00
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: yyh <yuanyouhuilyz@gmail.com>
24 lines
418 B
TypeScript
24 lines
418 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)
|