import AttachmentUrl from 'sentry/components/attachmentUrl';
import UserAvatar from 'sentry/components/avatar/userAvatar';
import Button from 'sentry/components/button';
import DateTime from 'sentry/components/dateTime';
import {DeviceName} from 'sentry/components/deviceName';
import FileSize from 'sentry/components/fileSize';
import GlobalSelectionLink from 'sentry/components/globalSelectionLink';
import {IconPlay} from 'sentry/icons';
import {t} from 'sentry/locale';
import {AvatarUser, Organization, Tag} from 'sentry/types';
import {Event} from 'sentry/types/event';
import getRouteStringFromRoutes from 'sentry/utils/getRouteStringFromRoutes';
import {useRoutes} from 'sentry/utils/useRoutes';
import withOrganization from 'sentry/utils/withOrganization';
type Props = {
event: Event;
groupId: string;
orgId: string;
organization: Organization;
projectId: string;
tagList: Tag[];
className?: string;
hasUser?: boolean;
};
function EventsTableRow({
className,
event,
projectId,
orgId,
groupId,
tagList,
hasUser,
organization,
}: Props) {
const routes = useRoutes();
const crashFileLink = !event.crashFile ? null : (