import { useTranslation, Trans } from 'react-i18next' import { Col, Row } from 'react-bootstrap' import { PriceExceptions } from '../shared/price-exceptions' import PremiumFeaturesLink from '../dashboard/premium-features-link' import getMeta from '../../../../utils/meta' import { useSubscriptionDashboardContext } from '../../context/subscription-dashboard-context' import { ExposedSettings } from '../../../../../../types/exposed-settings' function SuccessfulSubscription() { const { t } = useTranslation() const { personalSubscription: subscription } = useSubscriptionDashboardContext() const postCheckoutRedirect = getMeta('ol-postCheckoutRedirect') as | string | undefined const { appName, adminEmail }: ExposedSettings = getMeta('ol-ExposedSettings') if (!subscription || !('recurly' in subscription)) return null return (

{t('thanks_for_subscribing')}

{subscription.recurly.trial_ends_at && ( <>

, ]} // eslint-disable-line react/jsx-key />

)}

{t('to_modify_your_subscription_go_to')}  {t('manage_subscription')}.

{subscription.groupPlan && (

{t('add_your_first_group_member_now')}

)}

{t('thanks_for_subscribing_you_help_sl', { planName: subscription.plan.name, })}

{t('need_anything_contact_us_at')}  {adminEmail} .

, ]} />

{t('regards')},
The {appName} Team

< {t('back_to_your_projects')}

) } export default SuccessfulSubscription