import styled from '@emotion/styled'; import {CopyToClipboardButton} from 'sentry/components/copyToClipboardButton'; import ProjectBadge from 'sentry/components/idBadge/projectBadge'; import ExternalLink from 'sentry/components/links/externalLink'; import {Tooltip} from 'sentry/components/tooltip'; import {t, tct} from 'sentry/locale'; import {space} from 'sentry/styles/space'; import useProjects from 'sentry/utils/useProjects'; import type {TraceTree} from '../traceModels/traceTree'; interface TitleProps { representativeTransaction: TraceTree.Transaction | null; traceSlug: string; } export function Title({traceSlug, representativeTransaction}: TitleProps) { const traceTitle = representativeTransaction ? { op: representativeTransaction['transaction.op'], transaction: representativeTransaction.transaction, } : null; const {projects} = useProjects(); const project = projects.find(p => p.slug === representativeTransaction?.project_slug); return (