import {MouseEvent} from 'react'; import styled from '@emotion/styled'; import NavTabs from 'sentry/components/navTabs'; import useActiveReplayTab, { ReplayTabs, } from 'sentry/utils/replays/hooks/useActiveReplayTab'; type Props = {}; function FocusTabs({}: Props) { const {getActiveTab, setActiveTab} = useActiveReplayTab(); const activeTab = getActiveTab(); return ( {Object.entries(ReplayTabs).map(([tab, label]) => ( { setActiveTab(tab); e.preventDefault(); }} > {label} ))} ); } const Tab = styled('li')` z-index: ${p => p.theme.zIndex.initial + 1}; `; export default FocusTabs;