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.

571 B
Raw Blame
'use client'

import { cn } from '@langgenius/dify-ui/cn'
import { Spinner } from '@langgenius/dify-ui/spinner'
import { useTranslation } from 'react-i18next'

type LoadingPlaceholderProps = {
  label?: string
  className?: string
}

function LoadingPlaceholder({ label, className }: LoadingPlaceholderProps) {
  const { t } = useTranslation(['common'])

  return (
    <div className={cn('flex w-full items-center justify-center', className)}>
      <Spinner aria-label={label ?? t(($) => $.loading, { ns: 'common' })} />
    </div>
  )
}

export { LoadingPlaceholder }