import { Trans, useTranslation } from 'react-i18next' import { useSubscriptionDashboardContext } from '../../context/subscription-dashboard-context' export default function ManagedGroupSubscriptions() { const { t } = useTranslation() const { managedGroupSubscriptions } = useSubscriptionDashboardContext() if (!managedGroupSubscriptions) { return null } return ( <> {managedGroupSubscriptions.map(subscription => (

{subscription.userIsGroupMember ? ( , ]} // eslint-disable-line react/jsx-key, jsx-a11y/anchor-has-content values={{ planName: subscription.planLevelName, groupName: subscription.teamName || '', adminEmail: subscription.admin_id.email, }} /> ) : ( , ]} // eslint-disable-line react/jsx-key, jsx-a11y/anchor-has-content values={{ planName: subscription.planLevelName, groupName: subscription.teamName || '', adminEmail: subscription.admin_id.email, }} /> )}

{t('manage_members')}

{t('manage_group_managers')}

{t('view_metrics')}


))} ) }