import BadgeDisplayName from 'sentry/components/idBadge/badgeDisplayName'; import BaseBadge from 'sentry/components/idBadge/baseBadge'; type BaseBadgeProps = React.ComponentProps; type Organization = NonNullable; type Props = Partial> & { // A full organization is not used, but required to satisfy types with // withOrganization() organization: Organization; // If true, will use default max-width, or specify one as a string hideOverflow?: boolean | string; }; const OrganizationBadge = ({hideOverflow = true, organization, ...props}: Props) => ( {organization.slug} } organization={organization} {...props} /> ); export default OrganizationBadge;