import BaseAvatar from 'sentry/components/avatar/baseAvatar'; import {Team} from 'sentry/types'; import {explodeSlug} from 'sentry/utils'; type Props = { team: Team | null; } & Omit; function TeamAvatar({team, tooltip: tooltipProp, ...props}: Props) { if (!team) { return null; } const slug = (team && team.slug) || ''; const title = explodeSlug(slug); const tooltip = tooltipProp ?? `#${title}`; return ( ); } export default TeamAvatar;