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.

1.2 KB
Raw Blame
'use client'
import type { FC } from 'react'
import { cn } from '@langgenius/dify-ui/cn'
import * as React from 'react'
import { useTranslation } from 'react-i18next'
import GridMask from '@/app/components/base/grid-mask'
import UpgradeBtn from '../upgrade-btn'
import VectorSpaceInfo from '../usage-info/vector-space-info'
import s from './style.module.css'

const VectorSpaceFull: FC = () => {
  const { t } = useTranslation(['billing'])

  return (
    <GridMask
      wrapperClassName="border border-gray-200 rounded-xl"
      canvasClassName="rounded-xl"
      gradientClassName="rounded-xl"
    >
      <div className="px-6 py-5">
        <div className="flex items-center justify-between">
          <div className={cn(s.textGradient, 'text-base leading-6 font-semibold')}>
            <div>{t(($) => $['vectorSpace.fullTip'], { ns: 'billing' })}</div>
            <div>{t(($) => $['vectorSpace.fullSolution'], { ns: 'billing' })}</div>
          </div>
          <UpgradeBtn loc="knowledge-add-file" />
        </div>
        <React.Suspense fallback={null}>
          <VectorSpaceInfo className="pt-4" />
        </React.Suspense>
      </div>
    </GridMask>
  )
}
export default React.memo(VectorSpaceFull)