import {Fragment} from 'react'; import styled from '@emotion/styled'; import classNames from 'classnames'; import Count from 'sentry/components/count'; import EventOrGroupTitle from 'sentry/components/eventOrGroupTitle'; import EventAnnotation from 'sentry/components/events/eventAnnotation'; import EventMessage from 'sentry/components/events/eventMessage'; import {Hovercard} from 'sentry/components/hovercard'; import Link from 'sentry/components/links/link'; import TimeSince from 'sentry/components/timeSince'; import {t} from 'sentry/locale'; import space from 'sentry/styles/space'; import {Group} from 'sentry/types'; import {getMessage} from 'sentry/utils/events'; type Props = { card: boolean; children: React.ReactNode; issue: Group; orgId: string; to: string; }; const IssueLink = ({children, orgId, issue, to, card = true}: Props) => { if (!card) { return {children}; } const message = getMessage(issue); const className = classNames({ isBookmarked: issue.isBookmarked, hasSeen: issue.hasSeen, isResolved: issue.status === 'resolved', }); const streamPath = `/organizations/${orgId}/issues/`; const hovercardBody = (