import React, { PureComponent } from 'react'; import { LoadingPlaceholder } from '@grafana/ui'; import { Team } from 'app/types'; export interface Props { teams: Team[]; isLoading: boolean; } export class UserTeams extends PureComponent { render() { const { isLoading, teams } = this.props; if (isLoading) { return ; } if (teams.length === 0) { return null; } return (

Teams

{teams.map((team: Team, index) => { return ( ); })}
Name Email Members
{team.name} {team.email} {team.memberCount}
); } } export default UserTeams;