index.tsx 1.0 KB

1234567891011121314151617181920212223242526272829
  1. 'use client'
  2. import type { FC } from 'react'
  3. import React from 'react'
  4. import { useTranslation } from 'react-i18next'
  5. import UpgradeBtn from '../upgrade-btn'
  6. import VectorSpaceInfo from '../usage-info/vector-space-info'
  7. import s from './style.module.css'
  8. import cn from '@/utils/classnames'
  9. import GridMask from '@/app/components/base/grid-mask'
  10. const VectorSpaceFull: FC = () => {
  11. const { t } = useTranslation()
  12. return (
  13. <GridMask wrapperClassName='border border-gray-200 rounded-xl' canvasClassName='rounded-xl' gradientClassName='rounded-xl'>
  14. <div className='py-5 px-6'>
  15. <div className='flex justify-between items-center'>
  16. <div className={cn(s.textGradient, 'leading-[24px] text-base font-semibold')}>
  17. <div>{t('billing.vectorSpace.fullTip')}</div>
  18. <div>{t('billing.vectorSpace.fullSolution')}</div>
  19. </div>
  20. <UpgradeBtn loc='knowledge-add-file' />
  21. </div>
  22. <VectorSpaceInfo className='pt-4' />
  23. </div>
  24. </GridMask>
  25. )
  26. }
  27. export default React.memo(VectorSpaceFull)