upgrade-benefits.tsx 1021 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. import MaterialIcon from '@/shared/components/material-icon'
  2. import { useTranslation } from 'react-i18next'
  3. import { memo } from 'react'
  4. import classNames from 'classnames'
  5. function Check() {
  6. return <MaterialIcon type="check" />
  7. }
  8. function UpgradeBenefits({ className }: { className?: string }) {
  9. const { t } = useTranslation()
  10. return (
  11. <ul className={classNames('list-unstyled upgrade-benefits', className)}>
  12. <li>
  13. <Check />
  14. &nbsp;
  15. {t('higher_ai_allowance')}
  16. </li>
  17. <li>
  18. <Check />
  19. &nbsp;
  20. {t('collabs_per_proj_multiple')}
  21. </li>
  22. <li>
  23. <Check />
  24. &nbsp;
  25. {t('full_doc_history')}
  26. </li>
  27. <li>
  28. <Check />
  29. &nbsp;
  30. {t('sync_to_dropbox')}
  31. </li>
  32. <li>
  33. <Check />
  34. &nbsp;
  35. {t('sync_to_github')}
  36. </li>
  37. <li>
  38. <Check />
  39. &nbsp;
  40. {t('compile_larger_projects')}
  41. </li>
  42. </ul>
  43. )
  44. }
  45. export default memo(UpgradeBenefits)