1234567891011121314151617 |
- import {EventAttachment} from 'sentry/types';
- import {Event} from 'sentry/types/event';
- export type ViewerProps = {
- attachment: EventAttachment;
- event: Event;
- orgId: string;
- projectId: string;
- className?: string;
- };
- export function getAttachmentUrl(props: ViewerProps, withPrefix?: boolean): string {
- const {orgId, projectId, event, attachment} = props;
- return `${withPrefix ? '/api/0' : ''}/projects/${orgId}/${projectId}/events/${
- event.id
- }/attachments/${attachment.id}/?download`;
- }
|