manually-collected-subscription.tsx 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. import { Trans, useTranslation } from 'react-i18next'
  2. import OLNotification from '@/shared/components/ol/ol-notification'
  3. import Card from '@/features/group-management/components/card'
  4. import getMeta from '@/utils/meta'
  5. function ManuallyCollectedSubscription() {
  6. const { t } = useTranslation()
  7. const errorType = getMeta('ol-errorType')
  8. return (
  9. <Card>
  10. <OLNotification
  11. type="error"
  12. title={t('account_billed_manually')}
  13. content={
  14. errorType === 'plan-upgrade' ? (
  15. <Trans
  16. i18nKey="it_looks_like_your_account_is_billed_manually_upgrading_subscription"
  17. components={[
  18. // eslint-disable-next-line jsx-a11y/anchor-has-content, react/jsx-key
  19. <a href="/contact" rel="noreferrer noopener" />,
  20. ]}
  21. />
  22. ) : (
  23. <Trans
  24. i18nKey="it_looks_like_your_account_is_billed_manually_purchasing_additional_license_or_upgrading_subscription"
  25. components={[
  26. // eslint-disable-next-line jsx-a11y/anchor-has-content, react/jsx-key
  27. <a href="/contact" rel="noreferrer noopener" />,
  28. ]}
  29. />
  30. )
  31. }
  32. className="m-0"
  33. />
  34. </Card>
  35. )
  36. }
  37. export default ManuallyCollectedSubscription