import styled from '@emotion/styled'; import DateTime from 'sentry/components/dateTime'; import EventAttachmentActions from 'sentry/components/events/eventAttachmentActions'; import FileSize from 'sentry/components/fileSize'; import Link from 'sentry/components/links/link'; import {t} from 'sentry/locale'; import {IssueAttachment} from 'sentry/types'; import AttachmentUrl from 'sentry/utils/attachmentUrl'; import {types} from 'sentry/views/organizationGroupDetails/groupEventAttachments/types'; type Props = { attachment: IssueAttachment; groupId: string; isDeleted: boolean; onDelete: (attachmentId: string) => void; orgId: string; projectId: string; }; const GroupEventAttachmentsTableRow = ({ attachment, projectId, onDelete, isDeleted, orgId, groupId, }: Props) => (
{attachment.name}
·{' '} {attachment.event_id}
{types[attachment.type] || t('Other')} {url => !isDeleted ? ( ) : null }
); const TableRow = styled('tr')<{isDeleted: boolean}>` opacity: ${p => (p.isDeleted ? 0.3 : 1)}; td { text-decoration: ${p => (p.isDeleted ? 'line-through' : 'normal')}; } `; const ActionsWrapper = styled('div')` display: inline-block; `; export default GroupEventAttachmentsTableRow;