import { useTranslation } from 'react-i18next' import getMeta from '../../../../utils/meta' import InstitutionMemberships from './institution-memberships' import FreePlan from './free-plan' import PersonalSubscription from './personal-subscription' import ManagedGroupSubscriptions from './managed-group-subscriptions' function SubscriptionDashboard() { const { t } = useTranslation() const institutionMemberships = getMeta('ol-currentInstitutionsWithLicence') const subscription = getMeta('ol-subscription') const managedGroupSubscriptions = getMeta('ol-managedGroupSubscriptions') const hasDisplayedSubscription = institutionMemberships?.length > 0 || subscription || managedGroupSubscriptions?.length > 0 return (