import moment from 'moment' import { type Dispatch, type SetStateAction } from 'react' import { useTranslation } from 'react-i18next' import { User } from '../../../../../../types/group-management/user' import Badge from '../../../../shared/components/badge' import Tooltip from '../../../../shared/components/tooltip' import type { ManagedUserAlert } from '../../utils/types' import ManagedUserStatus from './managed-user-status' import SSOStatus from './sso-status' import ManagedUserDropdownButton from './managed-user-dropdown-button' import ManagedUsersSelectUserCheckbox from './managed-users-select-user-checkbox' import getMeta from '@/utils/meta' type ManagedUserRowProps = { user: User openOffboardingModalForUser: (user: User) => void groupId: string setManagedUserAlert: Dispatch> } export default function ManagedUserRow({ user, openOffboardingModalForUser, setManagedUserAlert, groupId, }: ManagedUserRowProps) { const { t } = useTranslation() const groupSSOActive = getMeta('ol-groupSSOActive') return ( {user.email} {user.invite ? (   {t('pending_invite')} ) : ( '' )} {user.isEntityAdmin && (