import { Trans } from 'react-i18next' import { Institution } from '../../../../../../types/institution' type InstitutionMembershipsProps = { memberships?: Array } function InstitutionMemberships({ memberships }: InstitutionMembershipsProps) { // memberships is undefined when data failed to load. If user has no memberships, then an empty array is returned if (!memberships) { return (

Sorry, something went wrong. Subscription information related to institutional affiliations may not be displayed. Please try again later.

) } return ( <>
{memberships.map((institution: Institution) => (
, // eslint-disable-next-line react/jsx-key , // eslint-disable-next-line react/jsx-key , ]} />
))}
) } export default InstitutionMemberships