import React, { FC } from 'react'; import { Tooltip, Icon } from '@grafana/ui'; import { LdapTeam } from 'app/types'; interface Props { teams: LdapTeam[]; showAttributeMapping?: boolean; } export const LdapUserTeams: FC = ({ teams, showAttributeMapping }) => { const items = showAttributeMapping ? teams : teams.filter((item) => item.teamName); return (
{showAttributeMapping && } {items.map((team, index) => { return ( {showAttributeMapping && ( <> {!team.orgName && ( <> )} )} {team.orgName && ( <> )} ); })}
LDAP GroupOrganisation Team
{team.groupDN}
No match
{team.orgName} {team.teamName}
); };