import BaseBadge from 'sentry/components/idBadge/baseBadge'; import MemberBadge from 'sentry/components/idBadge/memberBadge'; import OrganizationBadge from 'sentry/components/idBadge/organizationBadge'; import ProjectBadge from 'sentry/components/idBadge/projectBadge'; import {TeamBadge} from 'sentry/components/idBadge/teamBadge'; import UserBadge from 'sentry/components/idBadge/userBadge'; import {Member, User} from 'sentry/types'; type BaseBadgeProps = React.ComponentProps; type DisplayName = BaseBadgeProps['displayName']; type Props = Omit & { displayName?: DisplayName; member?: Member; user?: User; }; function getBadge({ organization, team, project, user, member, ...props }: Props): React.ReactElement | null { if (organization) { return ; } if (team) { return ; } if (project) { return ; } if (user) { return ; } if (member) { return ; } return null; } export default getBadge;