import Placeholder from 'sentry/components/placeholder'; import {useReplayContext} from 'sentry/components/replays/replayContext'; import useActiveReplayTab, {TabKey} from 'sentry/utils/replays/hooks/useActiveReplayTab'; import useOrganization from 'sentry/utils/useOrganization'; import Console from 'sentry/views/replays/detail/console'; import DomMutations from 'sentry/views/replays/detail/domMutations'; import IssueList from 'sentry/views/replays/detail/issueList'; import MemoryChart from 'sentry/views/replays/detail/memoryChart'; import NetworkList from 'sentry/views/replays/detail/network'; import Trace from 'sentry/views/replays/detail/trace/index'; type Props = {}; function FocusArea({}: Props) { const {getActiveTab} = useActiveReplayTab(); const {currentTime, currentHoverTime, replay, setCurrentTime, setCurrentHoverTime} = useReplayContext(); const organization = useOrganization(); switch (getActiveTab()) { case TabKey.network: return ( ); case TabKey.trace: return ; case TabKey.issues: if (!replay) { return ; } return ( ); case TabKey.dom: return ( ); case TabKey.memory: return ( ); case TabKey.console: default: return ( ); } } export default FocusArea;