import styled from '@emotion/styled';
import ListLink from 'sentry/components/links/listLink';
import ScrollableTabs from 'sentry/components/replays/scrollableTabs';
import {t} from 'sentry/locale';
import {space} from 'sentry/styles/space';
import {useLocation} from 'sentry/utils/useLocation';
import useUrlParams from 'sentry/utils/useUrlParams';
type Props = {
className?: string;
underlined?: boolean;
};
const TABS = {
details: t('Details'),
request: t('Request'),
response: t('Response'),
};
export type TabKey = keyof typeof TABS;
function NetworkDetailsTabs({className, underlined = true}: Props) {
const {pathname, query} = useLocation();
const {getParamValue, setParamValue} = useUrlParams('n_detail_tab', 'details');
const activeTab = getParamValue();
return (