index.tsx 1.2 KB

12345678910111213141516171819202122232425262728293031
  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 Usage from './usage'
  7. import s from './style.module.css'
  8. import cn from '@/utils/classnames'
  9. import GridMask from '@/app/components/base/grid-mask'
  10. const AnnotationFull: FC = () => {
  11. const { t } = useTranslation()
  12. return (
  13. <GridMask wrapperClassName='rounded-lg' canvasClassName='rounded-lg' gradientClassName='rounded-lg'>
  14. <div className='mt-6 px-3.5 py-4 border-2 border-solid border-transparent rounded-lg shadow-md flex flex-col transition-all duration-200 ease-in-out cursor-pointer'>
  15. <div className='flex justify-between items-center'>
  16. <div className={cn(s.textGradient, 'leading-[24px] text-base font-semibold')}>
  17. <div>{t('billing.annotatedResponse.fullTipLine1')}</div>
  18. <div>{t('billing.annotatedResponse.fullTipLine2')}</div>
  19. </div>
  20. <div className='flex'>
  21. <UpgradeBtn loc={'annotation-create'} />
  22. </div>
  23. </div>
  24. <Usage className='mt-4' />
  25. </div>
  26. </GridMask>
  27. )
  28. }
  29. export default React.memo(AnnotationFull)