import { useTranslation } from 'react-i18next' import { UserEmailData } from '../../../../../../types/user-email' import ResendConfirmationEmailButton from './resend-confirmation-email-button' import { ssoAvailableForInstitution } from '../../utils/sso' type EmailProps = { userEmailData: UserEmailData } function Email({ userEmailData }: EmailProps) { const { t } = useTranslation() const ssoAvailable = ssoAvailableForInstitution( userEmailData.affiliation?.institution ) return ( <> {userEmailData.email} {userEmailData.default ? ' (primary)' : ''} {!userEmailData.confirmedAt && (