sidebarArea.tsx 715 B

123456789101112131415161718192021222324
  1. import {useReplayContext} from 'sentry/components/replays/replayContext';
  2. import useUrlParams from 'sentry/utils/useUrlParams';
  3. import Breadcrumbs from 'sentry/views/replays/detail/breadcrumbs';
  4. import TagPanel from 'sentry/views/replays/detail/tagPanel';
  5. function SidebarArea() {
  6. const {getParamValue} = useUrlParams('t_side', 'crumbs');
  7. const {replay} = useReplayContext();
  8. switch (getParamValue().toLowerCase()) {
  9. case 'tags':
  10. return <TagPanel />;
  11. case 'crumbs':
  12. default:
  13. return (
  14. <Breadcrumbs
  15. frames={replay?.getChapterFrames()}
  16. startTimestampMs={replay?.getReplay()?.started_at?.getTime() || 0}
  17. />
  18. );
  19. }
  20. }
  21. export default SidebarArea;