Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

519 B
Raw Blame
import * as React from 'react'

type ImageRenderProps = {
  sourceUrl: string
  name: string
  onError?: () => void
}

const ImageRender = ({ sourceUrl, name, onError }: ImageRenderProps) => {
  return (
    <div className="size-full border-2 border-effects-image-frame shadow-xs">
      <img
        alt={name}
        className="size-full object-cover"
        decoding="async"
        loading="lazy"
        onError={onError}
        src={sourceUrl}
      />
    </div>
  )
}

export default React.memo(ImageRender)