import {Fragment} from 'react'; import ReplayClipPreviewPlayer from 'sentry/components/events/eventReplay/replayClipPreviewPlayer'; import {useReplayContext} from 'sentry/components/replays/replayContext'; import type {Group} from 'sentry/types/group'; import useReplayReader from 'sentry/utils/replays/hooks/useReplayReader'; import ReplayTable from 'sentry/views/replays/replayTable'; import type {ReplayColumn} from 'sentry/views/replays/replayTable/types'; type Props = { group: Group; orgSlug: string; pageLinks: string | null; replaySlug: string; selectedReplayIndex: number; setSelectedReplayIndex: (index: number) => void; visibleColumns: ReplayColumn[]; overlayContent?: React.ReactNode; } & React.ComponentProps; function ReplayTableWrapper({ replaySlug, overlayContent, setSelectedReplayIndex, orgSlug, group, ...props }: Props) { const {selectedReplayIndex} = props; const {analyticsContext} = useReplayContext(); const replayReaderData = useReplayReader({ orgSlug, replaySlug, group, }); return ( { setSelectedReplayIndex(selectedReplayIndex + 1); } : undefined } handleBackClick={ selectedReplayIndex > 0 ? () => { setSelectedReplayIndex(selectedReplayIndex - 1); } : undefined } analyticsContext={analyticsContext} isLarge {...replayReaderData} /> ); } export default ReplayTableWrapper;