mirror of
https://github.com/SigNoz/signoz.git
synced 2025-12-19 08:26:06 +00:00
23 lines
607 B
TypeScript
23 lines
607 B
TypeScript
import './TracesModulePage.styles.scss';
|
|
|
|
import RouteTab from 'components/RouteTab';
|
|
import { TabRoutes } from 'components/RouteTab/types';
|
|
import history from 'lib/history';
|
|
import { useLocation } from 'react-router-dom';
|
|
|
|
import { tracesExplorer, tracesSaveView } from './constants';
|
|
|
|
function TracesModulePage(): JSX.Element {
|
|
const { pathname } = useLocation();
|
|
|
|
const routes: TabRoutes[] = [tracesExplorer, tracesSaveView];
|
|
|
|
return (
|
|
<div className="traces-module-container">
|
|
<RouteTab routes={routes} activeKey={pathname} history={history} />
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export default TracesModulePage;
|