mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 19:59:50 +08:00
33 lines
1.2 KiB
TypeScript
33 lines
1.2 KiB
TypeScript
'use client'
|
|
import type { FC } from 'react'
|
|
import React from 'react'
|
|
import { useTranslation } from 'react-i18next'
|
|
import cn from 'classnames'
|
|
import UpgradeBtn from '../upgrade-btn'
|
|
import VectorSpaceInfo from '../usage-info/vector-space-info'
|
|
import s from './style.module.css'
|
|
import { useProviderContext } from '@/context/provider-context'
|
|
import GridMask from '@/app/components/base/grid-mask'
|
|
|
|
const VectorSpaceFull: FC = () => {
|
|
const { t } = useTranslation()
|
|
const { plan } = useProviderContext()
|
|
const { total } = plan
|
|
|
|
return (
|
|
<GridMask wrapperClassName='border border-gray-200 rounded-xl' canvasClassName='rounded-xl' gradientClassName='rounded-xl'>
|
|
<div className='py-5 px-6'>
|
|
<div className='flex justify-between items-center'>
|
|
<div className={cn(s.textGradient, 'leading-[24px] text-base font-semibold')}>
|
|
<div>{t('billing.vectorSpace.fullTip')}</div>
|
|
<div>{t('billing.vectorSpace.fullSolution')}</div>
|
|
</div>
|
|
<UpgradeBtn loc='knowledge-add-file' />
|
|
</div>
|
|
<VectorSpaceInfo className='pt-4' />
|
|
</div>
|
|
</GridMask>
|
|
)
|
|
}
|
|
export default React.memo(VectorSpaceFull)
|