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.

840 B
Raw Blame
'use client'

import { Alert, AlertActions, AlertTitle } from '@langgenius/dify-ui/alert'
import { Button } from '@langgenius/dify-ui/button'
import { useTranslation } from 'react-i18next'

type Props = {
  isRetrying: boolean
  onRetry: () => void
}

const VectorSpaceUnavailable = ({ isRetrying, onRetry }: Props) => {
  const { t } = useTranslation(['billing', 'common'])

  return (
    <Alert type="error">
      <AlertTitle>
        {t(($) => $['usagePage.vectorSpace'], { ns: 'billing' })}:{' '}
        {t(($) => $['plansCommon.unavailable'], { ns: 'billing' })}
      </AlertTitle>
      <AlertActions>
        <Button size="small" loading={isRetrying} onClick={onRetry}>
          {t(($) => $['operation.retry'], { ns: 'common' })}
        </Button>
      </AlertActions>
    </Alert>
  )
}

export default VectorSpaceUnavailable