import React, { FC } from 'react'; import { LdapUser } from 'app/types'; import { LdapUserGroups } from './LdapUserGroups'; import { LdapUserMappingInfo } from './LdapUserMappingInfo'; import { LdapUserPermissions } from './LdapUserPermissions'; import { LdapUserTeams } from './LdapUserTeams'; interface Props { ldapUser: LdapUser; showAttributeMapping?: boolean; } export const LdapUserInfo: FC = ({ ldapUser, showAttributeMapping }) => { return ( <> {ldapUser.roles && ldapUser.roles.length > 0 && ( )} {ldapUser.teams && ldapUser.teams.length > 0 ? ( ) : (
No teams found via LDAP
)} ); };