import styled from '@emotion/styled'; import Count from 'sentry/components/count'; import DateTime from 'sentry/components/dateTime'; import {KeyValueTable, KeyValueTableRow} from 'sentry/components/keyValueTable'; import Link from 'sentry/components/links/link'; import * as SidebarSection from 'sentry/components/sidebarSection'; import TextOverflow from 'sentry/components/textOverflow'; import TimeSince from 'sentry/components/timeSince'; import Version from 'sentry/components/version'; import {t, tn} from 'sentry/locale'; import type {ReleaseMeta, ReleaseWithHealth} from 'sentry/types'; import useOrganization from 'sentry/utils/useOrganization'; import {isVersionInfoSemver} from 'sentry/views/releases/utils'; type Props = { projectSlug: string; release: ReleaseWithHealth; releaseMeta: ReleaseMeta; }; function ProjectReleaseDetails({release, releaseMeta, projectSlug}: Props) { const organization = useOrganization(); const orgSlug = organization.slug; const {version, versionInfo, dateCreated, firstEvent, lastEvent} = release; const {releaseFileCount, isArtifactBundle} = releaseMeta; return ( {t('Project Release Details')} } /> } /> {versionInfo.package ?? '\u2014'} } /> : '\u2014'} /> : '\u2014'} /> {' '} {tn('artifact', 'artifacts', releaseFileCount)} } /> ); } const StyledTextOverflow = styled(TextOverflow)` line-height: inherit; text-align: right; `; export default ProjectReleaseDetails;