import styled from '@emotion/styled'; import EventDataSection from 'sentry/components/events/eventDataSection'; import Link from 'sentry/components/links/link'; import Placeholder from 'sentry/components/placeholder'; import {Provider as ReplayContextProvider} from 'sentry/components/replays/replayContext'; import ReplayView from 'sentry/components/replays/replayView'; import {t} from 'sentry/locale'; import space from 'sentry/styles/space'; import useFullscreen from 'sentry/utils/replays/hooks/useFullscreen'; import useReplayData from 'sentry/utils/replays/hooks/useReplayData'; type Props = { orgSlug: string; projectSlug: string; replayId: string; }; export default function EventReplay({replayId, orgSlug, projectSlug}: Props) { const {fetching, replay} = useReplayData({ eventSlug: `${projectSlug}:${replayId}`, orgId: orgSlug, }); const {ref: fullscreenRef, isFullscreen, toggle: toggleFullscreen} = useFullscreen(); return ( {replayId} {fetching ? ( ) : ( replay && ( ) )} ); } const PlayerContainer = styled('div')` max-width: 420px; margin-top: ${space(2)}; `;