import useActiveReplayTab, {TabKey} from 'sentry/utils/replays/hooks/useActiveReplayTab'; import A11y from 'sentry/views/replays/detail/accessibility/index'; import Breadcrumbs from 'sentry/views/replays/detail/breadcrumbs'; import Console from 'sentry/views/replays/detail/console'; import ErrorList from 'sentry/views/replays/detail/errorList/index'; import MemoryPanel from 'sentry/views/replays/detail/memoryPanel/index'; import NetworkList from 'sentry/views/replays/detail/network'; import PerfTable from 'sentry/views/replays/detail/perfTable/index'; import TagPanel from 'sentry/views/replays/detail/tagPanel'; import Trace from 'sentry/views/replays/detail/trace/index'; export default function FocusArea({isVideoReplay}: {isVideoReplay?: boolean}) { const {getActiveTab} = useActiveReplayTab({isVideoReplay}); if (isVideoReplay) { switch (getActiveTab()) { case TabKey.ERRORS: return ; case TabKey.BREADCRUMBS: return ; case TabKey.TAGS: default: { return ; } } } switch (getActiveTab()) { case TabKey.A11Y: return ; case TabKey.NETWORK: return ; case TabKey.TRACE: return ; case TabKey.PERF: return ; case TabKey.ERRORS: return ; case TabKey.MEMORY: return ; case TabKey.CONSOLE: return ; case TabKey.TAGS: return ; case TabKey.BREADCRUMBS: default: { return ; } } }