import {Fragment, memo} from 'react'; import styled from '@emotion/styled'; import AlertLink from 'sentry/components/alertLink'; import GroupReleaseChart from 'sentry/components/group/releaseChart'; import SeenInfo from 'sentry/components/group/seenInfo'; import Placeholder from 'sentry/components/placeholder'; import * as SidebarSection from 'sentry/components/sidebarSection'; import {Tooltip} from 'sentry/components/tooltip'; import {IconQuestion} from 'sentry/icons'; import {t} from 'sentry/locale'; import {space} from 'sentry/styles/space'; import {CurrentRelease, Group, Organization, Project} from 'sentry/types'; import getDynamicText from 'sentry/utils/getDynamicText'; type Props = { allEnvironments: Group | undefined; currentRelease: CurrentRelease | undefined; environments: string[]; group: Group | undefined; organization: Organization; project: Project; }; function GroupReleaseStats({ organization, project, environments, allEnvironments, group, currentRelease, }: Props) { const environment = environments.length > 0 ? environments.join(', ') : undefined; const environmentLabel = environment ? environment : t('All Environments'); const shortEnvironmentLabel = environments.length > 1 ? t('selected environments') : environments.length === 1 ? environments[0] : undefined; const projectId = project.id; const projectSlug = project.slug; const hasRelease = new Set(project.features).has('releases'); const releaseTrackingUrl = `/settings/${organization.slug}/projects/${project.slug}/release-tracking/`; return (