import {useState} from 'react'; import {Location} from 'history'; import * as Layout from 'sentry/components/layouts/thirds'; import PageFiltersContainer from 'sentry/components/organizations/pageFilters/container'; import {t} from 'sentry/locale'; import { PageErrorAlert, PageErrorProvider, } from 'sentry/utils/performance/contexts/pageError'; import {EndpointDataRow} from 'sentry/views/starfish/views/endpointDetails'; import {SpanSummaryPanel} from 'sentry/views/starfish/views/spans/spanSummaryPanel'; import APIModuleView from './APIModuleView'; type APIModuleState = { selectedRow?: EndpointDataRow; }; type Props = { location: Location; }; export default function APIModule(props: Props) { const [state, setState] = useState({selectedRow: undefined}); const unsetSelectedSpanGroup = () => setState({selectedRow: undefined}); const {selectedRow} = state; const setSelectedRow = (row: EndpointDataRow) => setState({selectedRow: row}); return ( {t('API')} ; ); }