index.tsx 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. 'use client'
  2. import type { FC } from 'react'
  3. import React from 'react'
  4. import { useTranslation } from 'react-i18next'
  5. import cn from 'classnames'
  6. import UpgradeBtn from '../upgrade-btn'
  7. import AppsInfo from '../usage-info/apps-info'
  8. import s from './style.module.css'
  9. import GridMask from '@/app/components/base/grid-mask'
  10. const AppsFull: FC<{ loc: string }> = ({
  11. loc,
  12. }) => {
  13. const { t } = useTranslation()
  14. return (
  15. <GridMask wrapperClassName='rounded-lg' canvasClassName='rounded-lg' gradientClassName='rounded-lg'>
  16. <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'>
  17. <div className='flex justify-between items-center'>
  18. <div className={cn(s.textGradient, 'leading-[24px] text-base font-semibold')}>
  19. <div>{t('billing.apps.fullTipLine1')}</div>
  20. <div>{t('billing.apps.fullTipLine2')}</div>
  21. </div>
  22. <div className='flex'>
  23. <UpgradeBtn loc={loc} />
  24. </div>
  25. </div>
  26. <AppsInfo className='mt-4' />
  27. </div>
  28. </GridMask>
  29. )
  30. }
  31. export default React.memo(AppsFull)