import { useTranslation } from 'react-i18next' import ContactSupport from './contact-support-for-custom-subscription' import GroupSubscriptionMemberships from './group-subscription-memberships' import InstitutionMemberships from './institution-memberships' import FreePlan from './free-plan' import ManagedPublishers from './managed-publishers' import PersonalSubscription from './personal-subscription' import ManagedGroupSubscriptions from './managed-group-subscriptions' import ManagedInstitutions from './managed-institutions' import { useSubscriptionDashboardContext } from '../../context/subscription-dashboard-context' import getMeta from '../../../../utils/meta' function SubscriptionDashboard() { const { t } = useTranslation() const { hasDisplayedSubscription, hasSubscription } = useSubscriptionDashboardContext() const fromPlansPage: boolean = getMeta('ol-fromPlansPage') return (
{fromPlansPage && (
{t('you_already_have_a_subscription')}
)}

{t('your_subscription')}

{!hasDisplayedSubscription && (hasSubscription ? : )}
) } export default SubscriptionDashboard