diff --git a/static/app/components/events/attachmentViewers/previewAttachmentTypes.tsx b/static/app/components/events/attachmentViewers/previewAttachmentTypes.tsx index 9f84b1c3352249..08782e1336bd76 100644 --- a/static/app/components/events/attachmentViewers/previewAttachmentTypes.tsx +++ b/static/app/components/events/attachmentViewers/previewAttachmentTypes.tsx @@ -7,7 +7,12 @@ import type {IssueAttachment} from 'sentry/types/group'; export const getInlineAttachmentRenderer = ( attachment: IssueAttachment -): typeof ImageViewer | typeof LogFileViewer | typeof RRWebJsonViewer | undefined => { +): + | typeof ImageViewer + | typeof LogFileViewer + | typeof RRWebJsonViewer + | typeof WebMViewer + | undefined => { switch (attachment.mimetype) { case 'text/css': case 'text/csv': diff --git a/static/app/components/events/attachmentViewers/webmViewer.tsx b/static/app/components/events/attachmentViewers/webmViewer.tsx index 74ca07a6b05073..511b19e0132d56 100644 --- a/static/app/components/events/attachmentViewers/webmViewer.tsx +++ b/static/app/components/events/attachmentViewers/webmViewer.tsx @@ -6,14 +6,19 @@ import PanelItem from 'sentry/components/panels/panelItem'; import {t} from 'sentry/locale'; interface WebMViewerProps - extends Pick {} + extends Pick, + Partial> { + onCanPlay?: React.ReactEventHandler; +} -export function WebMViewer(props: WebMViewerProps) { +export function WebMViewer({controls = true, onCanPlay, ...props}: WebMViewerProps) { return (