12345678910111213141516171819202122232425262728293031323334353637 |
- 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() {
- const {getActiveTab} = useActiveReplayTab();
- switch (getActiveTab()) {
- case TabKey.A11Y:
- return <A11y />;
- case TabKey.NETWORK:
- return <NetworkList />;
- case TabKey.TRACE:
- return <Trace />;
- case TabKey.PERF:
- return <PerfTable />;
- case TabKey.ERRORS:
- return <ErrorList />;
- case TabKey.MEMORY:
- return <MemoryPanel />;
- case TabKey.CONSOLE:
- return <Console />;
- case TabKey.TAGS:
- return <TagPanel />;
- case TabKey.BREADCRUMBS:
- default: {
- return <Breadcrumbs />;
- }
- }
- }
|