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.

536 B
Raw Blame
'use client'
import type { FC } from 'react'
import { Alert, AlertDescription, AlertTitle } from '@langgenius/dify-ui/alert'
import * as React from 'react'

type Props = Readonly<{
  className?: string
  title: string
  errorMsg?: string
}>

const ErrorMessage: FC<Props> = ({ className, title, errorMsg }) => {
  return (
    <Alert type="error" className={className}>
      <AlertTitle>{title}</AlertTitle>
      {errorMsg && <AlertDescription>{errorMsg}</AlertDescription>}
    </Alert>
  )
}
export default React.memo(ErrorMessage)